Slashdot Mirror


PHP 5 Release Candidate 2 Released

alexre1 writes "From the PHP website: 'The second Release Candidate of PHP 5 is now available! This mostly bug fix release improves PHP 5's stability and irons out some of the remaining issues before PHP 5 can be deemed release quality. Note that it is still not recommended for mission-critical use but people are encouraged to start playing with it and report any problems.' Cool! Hopefully we'll have a stable PHP 5.0 soon."

7 of 39 comments (clear)

  1. PHP5 by Leffe · · Score: 5, Interesting

    I run PHP5 on one of my developer boxes(I should install it on the other one too, but I'm lazy), and as far as I know it's completely back-compatible(except from some new reserved keywords, but that's easy to fix). All the new features are really nice, and I have to say that I noticed a tiny gain in speed too.

    There's no reason not to switch to PHP5, everyone please do it now! Writing back-compatible code is no fun, I want to use all the new and exciting OOP features.

    Here's a page describing all the new features in PHP5 and the ZEND engine version 2!

    1. Re:PHP5 by eddy+the+lip · · Score: 5, Interesting
      ...and as far as I know it's completely back-compatible(except from some new reserved keywords, but that's easy to fix)

      If this is true, it takes away one of my major fears about PHP5. They haven't exactly been careful about this in the past, and there's been more than one occasion where I was franticaly updating mounds of code because they decided something should be spelled different.

      I've been keeping half an eye on the changes, and the only thing that had twigged as a possible issue so far was in classes, especially changing the default contstructor. Changing the name of a constructor isn't a big deal in itself, but I'd be doing it in a lot of code, distributed across many, many sites. I'd be very happy to put this particular fear to rest.

      That aside, I am looking forward to the new OOP features. 95% of what I write is OOP, and there are some things in there I've been wanting for a long time.

      --

      This is the voice of World Control. I bring you Peace.

  2. hello?!? by Charles+Dart · · Score: 3, Insightful


    Considering how much of the web runs on PHP, I am surprized at the lack of interest in this new release. PHP 5 when combined with MySQL 4 is going to do some amazing things.

    Wake up you people!

    1. Re:hello?!? by mercuriser · · Score: 5, Informative

      It's going to be even better then that!

      PHP5 comes with its very own integrated 'lite' sql server that can handle simple queries very very quickly.

      The decision to implement SQLite into PHP5 is "good for small and mid-sized applications, because the database lives on the same server as the application that is using it"

    2. Re:hello?!? by jasoncart · · Score: 5, Informative

      What about MySQL 5? Stored procedures seems to be the biggest new feature...

  3. Re:Changes are bad? by XO · · Score: 3, Funny

    Er, yeah, how exactly else are you supposed to access a member of an array?

    --
    "Champagne for my real friends - and real pain for my sham friends!" http://ericblade.postalboard.com/
  4. PHP syntax rant by StandardDeviant · · Score: 3, Insightful

    Eh, first they rip off perl (poorly)
    and now they're goign to rip off Java
    (probably poorly, given their track record).

    Sorry to seem trollish, I've just written
    enough in all three languages (been writing
    web code for pay since '99) to notice that
    three quarters of PHP is a stripped-down,
    amateurishly implemented clone of features
    from other languages (an example that springs
    to mind is: copying visual signification of
    variables like perl, but not disambiguting
    singular and plural types (perl: $scalar and
    @array vs. php: $scalar and $array)). And
    whoever decided that it was ok for some
    array functions to use foo($var,$array)
    and others to use bar($array,$var) should
    just be slapped repeatedly with a dead trout.
    Also, anyone who has tried to use PHP's reference
    mechanism, usually ends up shocked at the number
    of bugs-by-design present in the language.
    I hope the Zend team has picked shallow or deep
    copy for PHP5 rather than just having the
    interpreter do an indeterminate mix of both
    like in PHP4...

    I use PHP because the majority of the code at my
    workplace was written in it (by people who,
    imho, sucked) so the current devs have too much
    legacy code to feasibly port to something
    saner. Irritating sometimes, but it pays the bills.

    *shrug* I guess PHP is what passes for
    language design these days, just like MySQL
    is what seems to pass for relational database
    management these days.