ID: 50233 Updated by: bj...@php.net Reported By: k_radek at yahoo dot pl Status: Bogus Bug Type: Scripting Engine problem Operating System: GNU/Linux PHP Version: 5.2.11 New Comment:
Actually, see bug#50184 (which is an open doc issue) Previous Comments: ------------------------------------------------------------------------ [2009-11-23 20:49:52] bj...@php.net Actually, I cannot reproduce this. You are probably talking about something like this: <?php define("fOo", "bar", 0); var_dump(fOo); define("FOO", "foobar", 1); var_dump(fOo, foo); ?> Note that "fOo" still references the original "bar", while any other variations of "foo" reference the latter, case-insensitive declaration. Thats expected behavior. ------------------------------------------------------------------------ [2009-11-23 20:44:14] bj...@php.net That makes no sense. Reclassified as an engine problem. ------------------------------------------------------------------------ [2009-11-19 16:00:14] k_radek at yahoo dot pl Description: ------------ Last paremeter defined in a function says that you can define constant with case-insensitive option but says nothing about that it allows you to REDEFINE constant... Reproduce code: --------------- --- >From manual page: function.define#Parameters --- "If set to TRUE, the constant will be defined case-insensitive. The default behavior is case-sensitive; i.e. CONSTANT and Constant represent different values." Expected result: ---------------- "If set to TRUE, the constant will be defined case-insensitive. The default behavior is case-sensitive; i.e. CONSTANT and Constant represent different values. It allows you to redefine constant." Actual result: -------------- "If set to TRUE, the constant will be defined case-insensitive. The default behavior is case-sensitive; i.e. CONSTANT and Constant represent different values." ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50233&edit=1