ID:               48958
 Updated by:       j...@php.net
 Reported By:      wolff at ironshark dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      5.2.10
 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




Previous Comments:
------------------------------------------------------------------------

[2009-07-17 11:57:27] wolff at ironshark dot de

Description:
------------
it is possible to overwrite defined variables

Reproduce code:
---------------
define('FOO','bar',true);
echo FOO; // will print "bar"

define('FOO','bar',true);
define('FOO','stuff',true);
echo FOO; // will print "bar"

define('FOO','bar',true);
define('FOO','stuff'); // <<< here is the bug
echo FOO; // will print "stuff"

Expected result:
----------------
FOO won't be overwritten

Actual result:
--------------
it will printed out "stuff"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48958&edit=1

Reply via email to