#19111 [Opn->Dup]: Incorect working !false
| From: | hholzgra@php.net | Date: | Sat, 28 Sep 2002 21:39:04 +0000 |
| Subject: | #19111 [Opn->Dup]: Incorect working !false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20638@lists.php.net to get a copy of this message | ||
ID: 19111
Updated by: hholzgra@php.net
Reported By: young@sl.com.ua
-Status: Open
+Status: Duplicate
Bug Type: Zend Engine 2 problem
Operating System: Windows2000
PHP Version: 4CVS-2002-08-26
New Comment:
duplicate of #18768
Previous Comments:
------------------------------------------------------------------------
[2002-09-06 03:51:39] phpsurf@ifrance.com
it looks like this problem only happens when the script is called with
php as an apache module, because true/false constants are not defined
and appear as string which means they always evaluate to true !
but when you var_dump(true) or var_dump(false) on a command line call
to php, then they are well defined as booleans !!!
------------------------------------------------------------------------
[2002-08-26 12:36:33] young@sl.com.ua
Constriction
if (!false) {
echo "HERE";
}
under Win32 doestn work.
echo (int) (!false); // display 0
Under Linux all working.
Php 4.3 Dev
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19111&edit=1