Page 1 of 1

PHP 5.1.3

Posted: Tue May 02, 2006 2:44 pm
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.

Posted: Wed May 03, 2006 2:48 am
by Maugrim_The_Reaper
No more var use warnings in E_STRICT...;) They have also improved FastCGI interfacing - very nice.

Posted: Wed May 03, 2006 8:02 am
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:

Posted: Wed May 03, 2006 8:07 am
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...

Posted: Wed May 03, 2006 8:31 am
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

Posted: Wed May 03, 2006 3:57 pm
by Ambush Commander
I use three hosts, and all of them have started offering PHP 5. :?

Re: PHP 5.1.3

Posted: Wed May 03, 2006 4:36 pm
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.