diff --git a/appendices/migration5.xml b/appendices/migration5.xml index f1730467fe..d6f61267f6 100755 --- a/appendices/migration5.xml +++ b/appendices/migration5.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 4 to PHP 5 @@ -102,11 +102,18 @@ - ip2long now returns FALSE when an invalid IP + ip2long now returns &false; when an invalid IP address is passed as argument to the function, and no longer -1. + + + include_once and require_once + first normalize the path of included file on Windows so that including + A.php and a.php include the file just once. + + diff --git a/language/control-structures.xml b/language/control-structures.xml index 099ed99485..b3d9bce0ec 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1526,11 +1526,14 @@ echo $bar; // prints 1 ]]> + This behaviour changed in PHP 5 - the path is normalized first so that + C:\PROGRA~1\A.php is realized the same as + C:\Program Files\a.php and the file is required just once. @@ -1586,11 +1589,14 @@ require_once("A.php"); // this will include a.php again on Windows! ]]> + This behaviour changed in PHP 5 - the path is normalized first so that + C:\PROGRA~1\A.php is realized the same as + C:\Program Files\a.php and the file is included just once.