Bug #55411 [Opn->Bgs]: undefined class constant doesn't show up via AJAX
| From: | pierrick@php.net | Date: | Fri, 12 Aug 2011 11:57:21 +0000 |
| Subject: | Bug #55411 [Opn->Bgs]: undefined class constant doesn't show up via AJAX | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162544@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55411&edit=1
ID: 55411
Updated by: pierrick@php.net
Reported by: r1pp3r dot j4ck at gmail dot com
Summary: undefined class constant doesn't show up via AJAX
-Status: Open
+Status: Bogus
Type: Bug
Package: Class/Object related
Operating System: Linux
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You have a syntax error, you can not do an echo directly into the class body.
Previous Comments:
------------------------------------------------------------------------
[2011-08-12 09:51:12] r1pp3r dot j4ck at gmail dot com
Description:
------------
Fatal error: undefined class constant doesn't show up via AJAX, neither in the
error log, so it crashes without any warning making the debugging really
complicated. Actually the file doesn't load at all, tried with string out of the
<?php ?> tags.
Test script:
---------------
asdfasdf
<?php
class random
{
const test = 1;
echo $this::tes;
}
?>
Expected result:
----------------
asdfasdf
Undefined class constant 'tes' in ...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55411&edit=1