#50184 [Opn]: Constants can be redefined
| From: | goatlabs at gmail dot com | Date: | Mon, 16 Nov 2009 03:59:25 +0000 |
| Subject: | #50184 [Opn]: Constants can be redefined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144652@lists.php.net to get a copy of this message | ||
ID: 50184
User updated by: goatlabs at gmail dot com
Reported By: goatlabs at gmail dot com
Status: Open
Bug Type: *Programming Data Structures
Operating System: OSX 10.6.2; Debian Linux 5.0.3
PHP Version: 5.3.0
New Comment:
Note: the description should read:
define() constants can be modified if originally defined
"case-INsensitive"
Previous Comments:
------------------------------------------------------------------------
[2009-11-16 01:44:49] goatlabs at gmail dot com
Description:
------------
define() constants can be modified if originally defined case-sensitive
Reproduce code:
---------------
define('TEST', 'foo', true);
var_dump(TEST);
define('TEST', 'bar');
var_dump(TEST);
Expected result:
----------------
string(3) "foo"
string(3) "foo"
Actual result:
--------------
string(3) "foo"
string(3) "bar"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50184&edit=1