ID:               18768
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
-Bug Type:         Zend Engine 2 problem
+Bug Type:         Scripting Engine problem
 Operating System: windows
 PHP Version:      4CVS-2002-08-07
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-08-07 03:58:49] [EMAIL PROTECTED]

The constants true/false (and certainly other pre-defined constants)
are not defined when PHP is called from apache, but they are when PHP
is called in command line !

here is a test script: test.php
<?php
var_dump(PHP_VERSION, true, TRUE);
?>

1- on command line : C:\php>php test.php
outputs :
string(9) "4.3.0-dev"
bool(true)
bool(true)

2- but called from apache : http://localhost/test.php
it outputs :
string(11) "PHP_VERSION"
string(4) "true"
string(4) "TRUE"

see the constants are no more booleans but strings !

I'm using PHP 4.3.0 alpha 2
with Apache 1.3.24

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18768&edit=1

Reply via email to