PHP 4.0 Bug #5514: returning values from settype are sometimes wrong

From: Date: Tue, 11 Jul 2000 16:31:30 +0000
Subject: PHP 4.0 Bug #5514: returning values from settype are sometimes wrong
Groups: php.dev 
Request: Send a blank email to php-dev+get-24098@lists.php.net to get a copy of this message
From: tfromm@cs.uni-potsdam.de Operating system: Linux PHP version: 4.0.0 PHP Bug Type: Scripting Engine problem Bug description: returning values from settype are sometimes wrong you can try the following: (filename was test.php) <?php $filename=__FILE__; echo $filename."<br>"; if(settype($filename,"integer")){ echo "TRUE"; } else { echo "FALSE"; } ?> it seems that the settype() function not returns a clear FALSE, as aspected. :-/

« previous php.dev (#24098) next »