From: Operating system: Win32 PHP version: 5.3.2 Package: Scripting Engine problem Bug Type: Bug Bug description:handling of case sensitivity of old-style constructors changed in 5.3+
Description: ------------ Since PHP 5.3+ (it worked in 5.2.6) handling of old-style constructors with case sensitive (i.e. camelcasing) changed. The 'generated' constructor is only available in lower case since 5.3 Test script: --------------- <?php // WORKING class AA { function AA() { echo 'works!'; } } class bb extends AA {} class CC extends bb { function CC() { parent::bb(); } } new CC(); // FATAL ERROR class A { function A() { echo 'check'; } } class B extends A {} class C extends B { function C() { parent::B(); } } new C(); Expected result: ---------------- works!check Actual result: -------------- works! Fatal error: Call to undefined method B::B() in C:\php\test.php on line 18 Call Stack: 0.0002 331488 1. {main}() C:\php\test.php:0 0.0003 331656 2. C->C() C:\php\test.php:20 -- Edit bug report at http://bugs.php.net/bug.php?id=52051&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52051&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52051&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52051&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52051&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52051&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52051&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52051&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52051&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52051&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52051&r=support Expected behavior: http://bugs.php.net/fix.php?id=52051&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52051&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52051&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52051&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52051&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52051&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52051&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52051&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52051&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52051&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52051&r=mysqlcfg