ID: 25851
Updated by: [EMAIL PROTECTED]
Reported By: fabio dot sutto at libero dot it
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Win
PHP Version: 4.3.3
New Comment:
It works just fine, you're just doing something wrong.
Previous Comments:
------------------------------------------------------------------------
[2003-10-13 10:07:08] tony2001 at phpclub dot net
Have you tried this code:
<?php
$line = ' ';
var_dump($line === false);
?>
?
I can't reproduce it under PHP5-CVS & PHP4-CVS.
------------------------------------------------------------------------
[2003-10-13 08:56:07] fabio dot sutto at libero dot it
Description:
------------
Comparison operator "===" doesn't work as it should
while (!feof ($this->link)) {
$line = fgets($this->link, 4096) ;
var_dump($line) ; //output string(1) " "
/*
'' is identical to false inside if
*/
if($line === false){
var_dump($line) ;
//output bool(false)
}
}//end while
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25851&edit=1