|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55515 Accessing an undefined constant in a calss gives Fatal Error on Windows
Submitted: 2011-08-26 22:04 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: shehabic at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.3.8 OS: Windows ( any version )
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-08-26 22:04 UTC] shehabic at gmail dot com
From manual page:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-13 20:59 UTC]
-Status: Open +Status: Feedback
 [2012-04-13 20:59 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?
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 03:01:28 2024 UTC