PHP 5.1.3

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

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

PHP 5.1.3

Post by Ambush Commander »

The standard triumvirate of links:

http://www.php.net/downloads.php
http://www.php.net/release_5_1_3.php
http://www.php.net/ChangeLog-5.php#5.1.3

A few blog postings (courtesy of Planet PHP):

http://ilia.ws/archives/114-PHP-5.1.3-Released!.html
http://blog.thepimp.net/index.php/2006/ ... d-finally-
http://www.killersoft.com/randomstrings ... -released/

It seems to me that the strtotime() enhancements would be quite interesting, interesting links:

* http://en.wikipedia.org/wiki/EXIF#Example - Demonstrates EXIF time format, for which support was added
* http://bugs.php.net/bug.php?id=36638 - allows strtotime to parse dates that result in negative timestamps
* http://bugs.php.net/bug.php?id=36510 - tabs allowed in strtotime strings
* http://bugs.php.net/bug.php?id=36396 - DD-MM-YYYY strings work now

The phpinfo() XSS attack is quite amusing (if you have a file with that public, you've got way bigger problems), but I don't know much about it. I wonder why...

msession was moved to PECL.

Multitude of improvements to the SPL, SimpleXML, GD, CURL and Reflection extensions. sounds quite promising, unfortunantely, I don't use them.

Code: Select all

# Improved SPL: (Marcus)

    * Fixed issues with not/double calling of constructors of SPL iterators.
    * Fixed issues with info-class/file-class in SPL directory handling classes.
    * Fixed ArrayIterator::seek().
    * Added SimpleXMLIterator::count().
    * Dropped erroneous RecursiveDirectoryIterator::getSubPathInfo().

# Improved SimpleXML: (Marcus, Rob)

    * Added SimpleXMLElement::getName() to retrieve name of element.
    * Added ability to create elements on the fly.
    * Added addChild() method for element creation supporting namespaces.
    * Added addAttribute() method for attribute creation supporting namespaces.
    * Added ability to delete specific elements and attributes by offset.

# Improved Reflection API: (Marcus)

    * Added ReflectionClass::newInstanceArgs($args).
    * Added ability to analyze extension dependency.
    * Added ReflectionFunction::isDeprecated() and constant IS_DEPRECATED.
    * Added ReflectionParameter::getDeclaringClass().
    * Changed reflection constants to be prefixed with IS_. (Johannes)

# Improved cURL extension: (Ilia)

    * Added curl_setopt_array() function that allows setting of multiple options via an associated array.
    * Added the ability to retrieve the request message sent to the server.

# Improved GD extension: (Pierre)

    * Added a weak/tolerant mode to the JPEG loader.
    * Added filtering mode option to imagepng() to allow reducing file size.
    * Fixed imagecolorallocate() and imagecolorallocatelapha() to return FALSE on error.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

No more var use warnings in E_STRICT...;) They have also improved FastCGI interfacing - very nice.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I'm still waiting for those hosts that actually do use php5 to get around to atleast 5.1.2..

It seems I'm constantly in a losing race :lol:
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Try working on an OS project where everyone is desperate to see the world let alone a few hosts get as far as 5.0.0 even...
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Jcart wrote:I'm still waiting for those hosts that actually do use php5 to get around to atleast 5.1.2..

It seems I'm constantly in a losing race :lol:
http://www.dynamized.com
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I use three hosts, and all of them have started offering PHP 5. :?
santosj
Forum Contributor
Posts: 157
Joined: Sat Apr 29, 2006 7:06 pm

Re: PHP 5.1.3

Post by santosj »

Ambush Commander wrote: Multitude of improvements to the SPL, SimpleXML, GD, CURL and Reflection extensions. sounds quite promising, unfortunantely, I don't use them.
I have used the Reflection Classes in a Filter Factory of mine that is used to call the methods in the function and pass the variables to the function. The only issue is that since I haven't tested whether or not the values are placed as they would if you called the method normally, thank goodness there are two such methods in the ReflectionMethod class for passing arguments.

I'm disappointed however that the speeds of some SPL classes aren't up to stuff.
Post Reply