PHP 5.2.0 out

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

PHP 5.2.0 out

Post 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?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Yes. As I have commented before, all of my hosts currently offer PHP 5. This advancement only brings the inevitable closer.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Ambush wrote:Personally, I'm not sold on any of these
care to elaborate on the why?
(just out of curiosity)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
nameless1
Forum Newbie
Posts: 15
Joined: Sun Nov 05, 2006 1:14 pm

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Glad they finally got __toString() working in terms of context rather than when casted.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Those hooks are for extensions, not scripts.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yea but PHP doesn't need a patch anymore to provide those hooks... right?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yeah.
Post Reply