ID: 47601 Updated by: scott...@php.net Reported By: david at grudl dot com -Status: Open +Status: Feedback Bug Type: Class/Object related PHP Version: 5.2.9 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [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