|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-27 13:53 UTC] tautolog at gmail dot com
[2007-09-29 03:05 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
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