Bug #10940 Updated: ((true) && (true)) to return bool

From: Date: Tue, 29 Jan 2002 01:48:23 +0000
Subject: Bug #10940 Updated: ((true) && (true)) to return bool
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78389@lists.php.net to get a copy of this message
ID: 10940 Updated by: yohgaki Reported By: fabiankessler@usa.net Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: win2k PHP Version: 4.0.5 New Comment: It works now. (I'm using ZE2, but I think it is the same in ZE1) Previous Comments: ------------------------------------------------------------------------ [2001-05-17 16:08:05] fabiankessler@usa.net (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 this bug report at http://bugs.php.net/?id=10940&edit=1

« previous php.dev (#78389) next »