ID:               25851
 Comment by:       tony2001 at phpclub dot net
 Reported By:      fabio dot sutto at libero dot it
 Status:           Open
 Bug Type:         Variables related
 Operating System: Win
 PHP Version:      4.3.3
 New Comment:

Have you tried this code:
<?php
$line = ' ';
var_dump($line === false);
?>
?

I can't reproduce it under PHP5-CVS & PHP4-CVS.


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

[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

Reply via email to