|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-08-26 22:04 UTC] shehabic at gmail dot com
Description: ------------ --- From manual page: http://www.php.net/function.constant%23Errors/Exceptions --- Accessing an undefined constant in a calss gives Fatal Error on Windows while it gives a E_Warning on Linux Versions of PHP Expected result: ---------------- Giving the same error on both platforms PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
I can't reproduce this. Here is what I tried: $ /c/php-5.3.8/php -r 'class Foo{} echo constant("Foo::FOO");' Warning: constant(): Couldn't find constant Foo::FOO in Command line code on lin e 1 Could you maybe provide a full reproduce test script?