diff --git a/appendices/migration5.xml b/appendices/migration5.xml index 7aa99eabf6..519f234138 100755 --- a/appendices/migration5.xml +++ b/appendices/migration5.xml @@ -1,5 +1,5 @@ - + Migrating from PHP 4 to PHP 5 @@ -92,11 +92,19 @@ - get_class starting PHP 5 returns the name of the - class as it was declared which may lead to problems in older scripts - that rely on the previous behaviour (the class name was lowercased). - A possible solution is to search for get_class in - all your scripts and use strtolower. + get_class now returns the name of the class as it + was declared (case-sensitive) which may lead to problems in older scripts + that rely on the previous behaviour (the class name was always returned + lowercased). A possible solution is to search for + get_class in all your scripts and use + strtolower. + + + This case sensitivity change also applies to the + magical predefined + constants __CLASS__, + __METHOD__, and __FUNCTION__. + The values are returned exactly as they're declared (case-sensitive).