#27286 [Opn->WFx]: Predefined constants behavior
| From: | sniper@php.net | Date: | Tue, 17 Feb 2004 08:51:16 +0000 |
| Subject: | #27286 [Opn->WFx]: Predefined constants behavior | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55059@lists.php.net to get a copy of this message | ||
ID: 27286
Updated by: sniper@php.net
Reported By: yiwakiri at st dot rim dot or dot jp
-Status: Open
+Status: Wont fix
Bug Type: *General Issues
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
Shortly: Don't do that. :)
Changing this would slow things down too much.
But if you want a) faster scripts b) be sure true/false are true/false
always, use the lowercase true/false constants.
Only TRUE / FALSE can be redefined, true / false not.
Previous Comments:
------------------------------------------------------------------------
[2004-02-17 02:04:50] yiwakiri at st dot rim dot or dot jp
Description:
------------
Hi,
I think that behavior of the following scripts is a bug.
$ php -r "define('TRUE', false); var_dump(TRUE);"
bool(false)
To others FALSE/NULL is behaved similarly.
I want you to carry out a re-definition by the ability
not doing like the usual constant.
I checked folloing version.
PHP 5.0.0RC1-dev (cli) (built: Feb 5 2004 15:18:40)
PHP 4.3.4 (cli) (built: Feb 3 2004 10:01:36)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27286&edit=1