Page 1 of 2

PHP 5.2.0 out

Posted: Thu Nov 02, 2006 5:53 pm
by Ambush Commander
http://www.php.net/releases/5_2_0.php

Notable changes include the filter extension, zip extension and datetime objects.

Personally, I'm not sold on any of these, but it seems like a solid release and perhaps using them a little will change my mind.

Now... bets on when 5.2.1 will be forced to be released?

Posted: Thu Nov 02, 2006 6:45 pm
by Maugrim_The_Reaper
I say 12 days. I haven't tracked it recently but it had some BC issues up to a few weeks ago...

Maybe more webhosts will take the .2 release as a signal to migrate to PHP5?

Posted: Thu Nov 02, 2006 6:46 pm
by Ambush Commander
Yes. As I have commented before, all of my hosts currently offer PHP 5. This advancement only brings the inevitable closer.

Posted: Thu Nov 02, 2006 6:53 pm
by RobertGonzalez

Posted: Fri Nov 03, 2006 1:38 am
by matthijs
Ambush wrote:Personally, I'm not sold on any of these
care to elaborate on the why?
(just out of curiosity)

Posted: Fri Nov 03, 2006 1:54 am
by Christopher
It has been my impression from all of the workarounds on the Zend Framework, first for 5.0.5 and then 5.1, that 5.2 finally has *most* of the stuff right to actually use the features of PHP5 as they were intended.

Posted: Fri Nov 03, 2006 2:52 am
by Maugrim_The_Reaper
I read through the changes. I'm not sold on the filter extension either but I don't claim enough knowledge of it for anyone to pay me much attention ;).

Having PHP JSON functions is quite nice. A project I'm working on at the moment uses a lot of JSON encoding (courtesy of ZF) so might speed things up a bit. The new DateTime class looks interesting.

Posted: Sun Nov 05, 2006 3:04 pm
by nameless1
I have not seen the date\time\timezones\daylightsavings objects or whatever it is that is in 5.20 yet but its about time. I hope they did it right as these would make life so much easier.

Posted: Sun Nov 05, 2006 5:52 pm
by Chris Corbyn
Glad they finally got __toString() working in terms of context rather than when casted.

Posted: Mon Nov 06, 2006 2:47 am
by Maugrim_The_Reaper
I can already see that being useful for stuff like Response objects... 5.2.0 really does seem to be a release where PHP's OOP is showing some maturity.

Posted: Mon Nov 06, 2006 3:06 pm
by Ollie Saunders
The PHP 5.0/5.1 fallback - returning a string that contains the object
identifier - has been dropped in PHP 5.2. It became problematic because
an object identifier cannot be considered unique. This change will mean
that your application is flawed if you have relied on the object identifier
as a return value. An attempt to use that value as a string will now result
in a catchable fatal error (see above).
Ahh crap!

Posted: Mon Nov 06, 2006 3:14 pm
by Luke
I know I can't be the only one that noticed this... maybe it has already been discussed elsewhere?
php.net on PHP5.2.0 wrote:Hooks for tracking file upload progress were introduced.

Posted: Mon Nov 06, 2006 3:20 pm
by feyd
Those hooks are for extensions, not scripts.

Posted: Mon Nov 06, 2006 3:43 pm
by Luke
yea but PHP doesn't need a patch anymore to provide those hooks... right?

Posted: Mon Nov 06, 2006 3:49 pm
by feyd
yeah.