Slashdot Mirror


PHP 5.3 Released

Sudheer writes "The PHP development team is proud to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes. Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, ext/intl and ext/fileinfo), over 140 bug fixes and much more."

9 of 120 comments (clear)

  1. Re:features! by ScytheBlade1 · · Score: 4, Funny

    Pffft. If you're going to say that, you had better include the link to the documentation: http://us.php.net/goto

    ... scroll down.......

  2. Horray by neoform · · Score: 5, Funny

    So does this mean I should upgrade from PHP 3.2? Are there any incompatibilities with my existing code?

    Maybe someone can look over my login script and tell me if this will work in PHP5?

    $query_login="select * FROM user";
    $result_login = mysql_query($query_login) or die("Your passwrod is might be bad I think");
    //$login_check = mysql_num_rows($result_login);
    while($row=mysql_fetch_array($result_login))
    {
    $username=$row["username"];
    if ($username==$username1)
    {
    echo "";
    echo "window.location.href='login_error.php?rec=qq';";
    echo "";
    exit;
    }
    }

    --
    MABASPLOOM!
    1. Re:Horray by Anonymous Coward · · Score: 5, Funny

      If you can't tell that the parent post is a joke you're probably a PHP programmer.

    2. Re:Horray by Ant+P. · · Score: 2, Funny

      Don't get your hopes up... I've seen real code that's worse.

  3. My best feature... by bogaboga · · Score: 2, Funny

    ...is the ability to employ goto, though it is not allowed to jump into a loop or switch statement. A fatal error is issued in such cases.

    1. Re:My best feature... by Canazza · · Score: 2, Funny

      so it's goto, but not as we know it?

      --
      It pays to be obvious, especially if you have a reputation for being subtle.
  4. Re:Hooray fileinfo is standard! by Anonymous Coward · · Score: 2, Funny

    Oh wait, almost any PHP project eventually gets reduced to a song and dance of ugly hacks.

    *sigh* Yes, yes, we know, and Python or insert-your-pet-language-here is a gloriously clean and not-at-all counterintuitive* wonderland of fantasy and enchantment where fairies and elves smile upon you and give you their blessings and unicorns piss rainbows and shit candy.

    At least until the next hip, trendy language comes out. How's your Ruby on Rails coding coming along?

    *: Obviously, because if anyone finds it counterintuitive and an ugly hack, they are wrong and ugly and stupid and smell funny so there.

  5. Re:features! by Seth+Kriticos · · Score: 3, Funny

    Guess the only thing missing now is COMEFROM?

  6. Re:Hooray fileinfo is standard! by andi75 · · Score: 2, Funny

    slash-achievements!

    Achievement unlocked: [ Post 5 consecutive posts using the Preview button first ]