From: alan at akbkhome dot com Operating system: all PHP version: 5.0.1 PHP Bug Type: Zend Engine 2 problem Bug description: Critical - conditional class definitions are compiled and produce errors
Description: ------------ something changed in 5.0.1 that breaks conditional class definitions. hence breaking code that worked ok on php4 & php5.0.0 Reproduce code: --------------- <?php if (true) { // this is the correct definition. (used for php5) class Overloaded { function __call($method,$args) { } } } else { // this is used for php4 class Overloaded { function __call($method,$args,&$return) { } } } ?> Expected result: ---------------- nothing Actual result: -------------- Content-type: text/html X-Powered-By: PHP/5.0.1 <br /> <b>Fatal error</b>: Method DB_DataObject_Overload::__call() must take exactly 2 arguments in <b>/usr/src/php/php-5.0.1/test1.php</b> on line <b>16</b><br /> a -- Edit bug report at http://bugs.php.net/?id=29716&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29716&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29716&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29716&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29716&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29716&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29716&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29716&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29716&r=support Expected behavior: http://bugs.php.net/fix.php?id=29716&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29716&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29716&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29716&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29716&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29716&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29716&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29716&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29716&r=float