PHP 4.0 Bug #5217: define() returns TRUE when trying to redefine default constants
| From: | akul at otamedia dot com | Date: | Sat, 24 Jun 2000 11:28:19 +0000 |
| Subject: | PHP 4.0 Bug #5217: define() returns TRUE when trying to redefine default constants | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22225@lists.php.net to get a copy of this message | ||
From: akul@otamedia.com
Operating system: Linux 2.2.13
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: define() returns TRUE when trying to redefine default constants
Try this:
<HTML><BODY>
<?
if(!define("True",-1))
echo '<BR>True is not defined!';
if(!define("False",0))
echo '<BR>False is not defined!';
echo '<BR> True=[' . True . ']';
echo '<BR>False=[' . False . ']';
?>
</BODY></HTML>
My output:
<HTML><BODY>
<BR> True=[1]<BR>False=[]
</BODY></HTML>
Configure Command './configure' '--with-apache=/usr/src/apache_1.3.9'
php.ini:
Safe_mode = On and Off the same
error_reporting = E_ALL
display_errors = On
variables_order = "GPCES"