ID: 42770 Updated by: [EMAIL PROTECTED] Reported By: tautolog at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.2.4 New Comment:
We don't support any 3rd party extensions. This includes the Zend Optimizer and such. (ask support for those at zend.com instead) If you're able to reproduce this without any zend extensions enabled (any extension enabled using zend_extension directive in php.ini is one :) send me an email. Otherwise this is bogus. Previous Comments: ------------------------------------------------------------------------ [2007-09-27 13:53:53] tautolog at gmail dot com Hi again, I built 5.2.4 to try to reproduce it myself, but I was unable to reproduce it with the code I provided. I got the expected result, not the error. I was thinking that perhaps the use of Zend Guard and Zend Optimizer may have something to do with it. I am still investigating... Thanks, Ben ------------------------------------------------------------------------ [2007-09-26 21:33:38] tautolog at gmail dot com Description: ------------ Hi, It appears that defined() is not catching a class lookup miss properly, and throwing a fatal error instead. This is happening on a customer's 5.2.4 install. It works fine on my 5.2.3 install. I haven't actually seen it for myself, but a customer told me that he is on php 5.2.4 and that he got this error: [Wed Sep 19 09:20:17 2007] [error] [client 85.178.73.32] PHP Fatal error: Class '.. ' not found in /var/www/html/mb5/lib-action/include/smarty/core/plugins/modifier.constant.php on line 20 And that line is: if (defined($string)) { The values of $string at that point was probably this: ".. :: 1000 MB Webspace :: 100 GB Traffic :: .." Thank you, Ben Reproduce code: --------------- echo "<?php echo (int) defined('.. :: 1000 MB Webspace :: 100 GB Traffic :: ..'); " | php Expected result: ---------------- 0 Actual result: -------------- PHP Fatal error: Class '.. ' not found ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42770&edit=1