php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9551 False boolen input/output doesn't work
Submitted: 2001-03-04 17:11 UTC Modified: 2001-03-19 17:14 UTC
From: alain at samoun dot net Assigned:
Status: Closed Package: COM related
PHP Version: 4.0 Latest CVS (04/03/2001) OS: win32
Private report: No CVE-ID: None
 [2001-03-04 17:11 UTC] alain at samoun dot net
       $COMOBJ =New COM ("whatever");
        $COMOBJ->SetBoolean= False;   #Or 0
        $Test = $COMOBJ->SetBoolean;
        Print "test=" . $Test;  
        #$Test="" always empty
        #Note: Set to True or 1 returns 1 and is OK


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-19 17:14 UTC] phanto@php.net
this is not a bug, this is how php handles booleans.

try echo gettype($COMOBJ->SetBoolean);
or echo (int)$COMOBJ->SetBoolean;
and you'll see that all is right :)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 21:01:27 2024 UTC