php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19111 Incorect working !false
Submitted: 2002-08-26 12:36 UTC Modified: 2002-11-10 18:32 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: young at sl dot com dot ua Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4CVS-2002-08-26 OS: Windows2000
Private report: No CVE-ID: None
 [2002-08-26 12:36 UTC] young at sl dot com dot ua
Constriction 
if (!false) {
  echo "HERE";
}
under Win32 doestn work.

echo (int) (!false); // display 0

Under Linux all working.

Php 4.3 Dev

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-06 03:51 UTC] phpsurf at ifrance dot 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-09-28 16:39 UTC] hholzgra@php.net
duplicate of #18768

 [2002-11-10 18:32 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 14:01:30 2024 UTC