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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tfromm at cs dot uni-potsdam dot de
New email:
PHP Version: OS:

 

 [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 09:00:01 2026 UTC