ID:              47601
 User updated by: david at grudl dot com
 Reported By:     david at grudl dot com
-Status:          Feedback
+Status:          Open
 Bug Type:        Class/Object related
 PHP Version:     5.2.9
 New Comment:

It seems this bug exists only in 5.2.x branch (since 5.2.4 - 5.2.9).
PHP 5.3.0beta1 which is older than 5.2.9 is not affected.


Previous Comments:
------------------------------------------------------------------------

[2009-03-09 00:10:45] scott...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2009-03-08 22:55:57] david at grudl dot com

Description:
------------
Function defined() is very strict whether class constant is checking.
Non-declared (and not-autoloaded) class can be rather expressed as FALSE
than fatal error.

Reproduce code:
---------------
var_dump( defined('Test::VALUE') );

Expected result:
----------------
FALSE

Actual result:
--------------
Fatal error: Class 'Test' not found 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47601&edit=1

Reply via email to