Bug #10940: ((true) && (true)) to return bool
| From: | fabiankessler at usa dot net | Date: | Thu, 17 May 2001 20:08:05 +0000 |
| Subject: | Bug #10940: ((true) && (true)) to return bool | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55662@lists.php.net to get a copy of this message | ||
From: fabiankessler@usa.net
Operating system: win2k
PHP version: 4.0.5
PHP Bug Type: Feature/Change Request
Bug description: ((true) && (true)) to return bool
(true)
returns a bool while
((true) && (true))
returns an int.
so
(((true) && (true)) == true)
"works" while
(((true) && (true)) === true)
doesnt.
i really don't like this behavior.
maybe you can forward also that
http://www.php.net/manual/en/function.gettype.php
doesn't document the NULL datatype you get (on null and unset values).
thanx
fab
--
Edit Bug report at: http://bugs.php.net/?id=10940&edit=1