Edit report at https://bugs.php.net/bug.php?id=64637&edit=1
ID: 64637
Updated by: laruence@php.net
Reported by: rstoll at tutteli dot ch
Summary: redefine NULL
-Status: Open
+Status: Feedback
Type: Bug
Package: *Languages/Translation
PHP Version: 5.4.14
Block user comment: N
Private report: N
New Comment:
http://3v4l.org/8knru
I didn't see a "hello world" outputted
Previous Comments:
------------------------------------------------------------------------
[2013-04-11 23:23:28] rstoll at tutteli dot ch
Description:
------------
It is possible to redefine NULL (however, not null). No one probably does that but it should not be
possible. Maybe there are more of this kind of errors.
Test script:
---------------
var_dump(null); // null
var_dump(NULL); // null
define("NULL","hello world");
var_dump(null); // null
var_dump(NULL); // hello world
define("null","hello world"); //Notice: Constant null already defined
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64637&edit=1