diff --git a/appendices/migration52.xml b/appendices/migration52.xml index f7ecb17d4f..0f7ab5f897 100644 --- a/appendices/migration52.xml +++ b/appendices/migration52.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 5.1.x to PHP 5.2.x @@ -57,10 +57,10 @@ - Changed priority of PHPRC environment variable on Win32 + Changed priority of PHPRC environment variable on Win32 - The PHPRC environment variable now takes priority over the path stored + The PHPRC environment variable now takes priority over the path stored in the Windows registry. @@ -220,12 +220,13 @@ include "data:;base64,PD9waHAgcGhwaW5mbygpOz8+"; - Regression in glob() patterns + Regression in glob() patterns In version 5.2.4 a security fix caused a regression for patterns of the form "/foo/*/bar/*". Since version 5.2.5 instead of raising a warning the - glob() function will return &false; when openbase_dir restrictions are violated. + glob() function will return &false; when + openbase_dir restrictions are violated. @@ -524,7 +525,7 @@ $obj->getCommentName(''); - on your system using the TZ environmental variable + on your system using the TZ environmental variable @@ -540,7 +541,7 @@ $obj->getCommentName(''); With the advent of PHP 5.2.x, there are object representations of the - date and timezone, named DateTime and DateTimeZone respectively. + date and timezone, named DateTime and DateTimeZone respectively. The methods map to existing procedural date functions. @@ -786,7 +787,7 @@ $obj->getCommentName(''); array_fill_keys - Create an array using the elements of the first parameter as keys, - each initialized to val + each initialized to val @@ -799,8 +800,9 @@ $obj->getCommentName(''); image_type_to_extension - - Get file extension for image-type returned by getimagesize, - exif_read_data, exif_thumbnail, exif_imagetype + - Get file extension for image-type returned by + getimagesize, exif_read_data, + exif_thumbnail, exif_imagetype @@ -993,7 +995,7 @@ $obj->getCommentName(''); pg_field_table - Returns the name of the table field belongs to, or table's oid - if oid_only is &true; + if oid_only is &true; @@ -1101,7 +1103,7 @@ $obj->getCommentName(''); DOMNode::getNodePath() - - Gets an xpath for a node + - Gets an xpath for a node @@ -1158,7 +1160,7 @@ $obj->getCommentName(''); ArrayIterator AppendIterator::getArrayIterator() - - Get access to inner ArrayIterator + - Get access to inner ArrayIterator @@ -1212,13 +1214,13 @@ $obj->getCommentName(''); array("delimiter" =>, "enclosure" =>) SplFileObject::getCsvControl(void) - - Get the delimiter and enclosure character used in fgetcsv + - Get the delimiter and enclosure character used in fgetcsv void SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']]) - - Set the delimiter and enclosure character used in fgetcsv + - Set the delimiter and enclosure character used in fgetcsv @@ -1238,7 +1240,8 @@ $obj->getCommentName(''); boolean XMLReader::setSchema(string filename) - - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read() + - Use W3C XSD schema to validate the document as it is processed. Activation is + only possible before the first Read() @@ -1325,8 +1328,9 @@ $obj->getCommentName(''); - RegexIterator - extends FilterIterator; implements Iterator, - Traversable, OuterIterator + RegexIterator - extends FilterIterator; + implements Iterator, Traversable, + OuterIterator Constants: @@ -1380,7 +1384,7 @@ $obj->getCommentName(''); RegexIterator::__construct(Iterator it, string regex [, int mode [, int flags [, int preg_flags]]]) - - Create an RegexIterator from another iterator and a regular expression + - Create an RegexIterator from another iterator and a regular expression @@ -1474,7 +1478,7 @@ $obj->getCommentName(''); RecursiveRegexIterator::__construct(RecursiveIterator it, string regex [, int mode [, int flags [, int preg_flags]]]) - - Create an RecursiveRegexIterator from another recursive iterator and + - Create an RecursiveRegexIterator from another recursive iterator and a regular expression @@ -1482,7 +1486,7 @@ $obj->getCommentName(''); RecursiveRegexIterator RecursiveRegexIterator::getChildren() - Return the inner iterator's children contained in a - RecursiveRegexIterator + RecursiveRegexIterator @@ -1960,16 +1964,16 @@ $obj->getCommentName(''); The new memory manager allocates less memory and works faster than the previous incarnation. It allocates memory from the system in large blocks, - and then manages the heap by itself. The memory_limit value in &php.ini; is - checked, not for each emalloc() call (as before), but for actual blocks - requested from the system. This means that memory_limit is far more + and then manages the heap by itself. The memory_limit value in &php.ini; is + checked, not for each emalloc() call (as before), but for actual blocks + requested from the system. This means that memory_limit is far more accurate than it used to be, since the old memory manager didn't calculate - all the memory overhead used by the malloc library. + all the memory overhead used by the malloc library. Thanks to this new-found accuracy memory usage may appear to have increased, although actually it has not. To accommodate this apparent increase, the - default memory_limit setting was also increased - from 8 to 16 megabytes. + default memory_limit setting was also increased - from 8 to 16 megabytes.