Doc #55515 [Opn->Fbk]: Accessing an undefined constant in a calss gives Fatal Error on Windows

From: Date: Fri, 13 Apr 2012 20:59:17 +0000
Subject: Doc #55515 [Opn->Fbk]: Accessing an undefined constant in a calss gives Fatal Error on Windows
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8261@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55515&edit=1 ID: 55515 Updated by: nikic@php.net Reported by: shehabic at gmail dot com Summary: Accessing an undefined constant in a calss gives Fatal Error on Windows -Status: Open +Status: Feedback Type: Documentation Problem Package: *General Issues Operating System: Windows ( any version ) PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [2011-08-26 22:04:08] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55515&edit=1

« previous php.doc.bugs (#8261) next »