Doc #55515 [Fbk->NoF]: Accessing an undefined constant in a calss gives Fatal Error on Windows
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:35:00 +0000 |
| Subject: | Doc #55515 [Fbk->NoF]: 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-9543@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: php-bugs@lists.php.net
Reported by: shehabic at gmail dot com
Summary: Accessing an undefined constant in a calss gives Fatal
Error on Windows
-Status: Feedback
+Status: No Feedback
Type: Documentation Problem
Package: *General Issues
Operating System: Windows ( any version )
PHP Version: 5.3.8
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-04-13 20:59:17] nikic@php.net
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?
------------------------------------------------------------------------
[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