#50233 [Bgs]: This is not enought description.
| From: | bjori@php.net | Date: | Mon, 23 Nov 2009 21:05:06 +0000 |
| Subject: | #50233 [Bgs]: This is not enought description. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144985@lists.php.net to get a copy of this message | ||
ID: 50233
Updated by: bjori@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] bjori@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] bjori@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