From: Robin at RHarmsen dot nl Operating system: Windows XP PHP version: 5.0.0RC1 PHP Bug Type: Zend Engine 2 problem Bug description: zend.ze1_compatibility_mode = On gives errors
Description: ------------ When I turn on zend Engine1 Compatibility mode my code stops working (It worked perfect on PHP4 and PHP5 withoud the compatibility mode) PHP.ini diffreances: zend.ze1_compatibility_mode = On (off when error doesn't occure) allow_call_time_pass_reference = Off error_reporting = E_ALL register_long_arrays = Off register_argc_argv = Off extension=php_mysql.dll configure line (according to phpinfo()) Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" I think it is realy strange that an error occures when the mode is activated. though it works on PHP4 and PHP5 withoud the mode activated. It looks like $db in the Menu class is'nt set Reproduce code: --------------- I got the source files located here to reproduce the bug http://www.rharmsen.nl/bugfiles/main.phps http://www.rharmsen.nl/bugfiles/clsDB.phps http://www.rharmsen.nl/bugfiles/clsMenu.phps Expected result: ---------------- I expected that the menu was displayed Actual result: -------------- What I got was: Fatal error: Call to a member function query() on a non-object in clsMenu.php on line 36 -- Edit bug report at http://bugs.php.net/?id=27836&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27836&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27836&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27836&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27836&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27836&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27836&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27836&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27836&r=support Expected behavior: http://bugs.php.net/fix.php?id=27836&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27836&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27836&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27836&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27836&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27836&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27836&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27836&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27836&r=float
