ID: 42770 User updated by: tautolog at gmail dot com Reported By: tautolog at gmail dot com Status: Open -Bug Type: Scripting Engine problem +Bug Type: Unknown/Other Function Operating System: * PHP Version: 5.2.4 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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