php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5514 returning values from settype are sometimes wrong
Submitted: 2000-07-11 12:31 UTC Modified: 2000-07-11 12:56 UTC
From: tfromm at cs dot uni-potsdam dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 OS: Linux
Private report: No CVE-ID: None
 [2000-07-11 12:31 UTC] tfromm at cs dot uni-potsdam dot de
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.
:-/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-11 12:56 UTC] stas at cvs dot php dot net
Closed by user request.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 06:00:02 2026 UTC