|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10940 ((true) && (true)) to return bool
Submitted: 2001-05-17 16:08 UTC Modified: 2002-01-28 20:48 UTC
From: fabiankessler at usa dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.5 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 6 = ?
Subscribe to this entry?

 [2001-05-17 16:08 UTC] fabiankessler at usa dot net
returns a bool while
((true) && (true)) 
returns an int. 

(((true) && (true)) == true)
"works" while
(((true) && (true)) === true)

i really don't like this behavior. 

maybe you can forward also that 
doesn't document the NULL datatype you get (on null and unset values).



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-28 20:48 UTC]
It works now. (I'm using ZE2, but I think it is the same in ZE1)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 18:01:28 2024 UTC