|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-17 12:40 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 09:00:01 2025 UTC |
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"