PHP 4.0 Bug #4805 Updated: !1 could return 0 instead of false

From: Date: Sun, 04 Jun 2000 15:35:04 +0000
Subject: PHP 4.0 Bug #4805 Updated: !1 could return 0 instead of false
Groups: php.dev 
Request: Send a blank email to php-dev+get-20188@lists.php.net to get a copy of this message
ID: 4805 Updated by: stas Reported By: fuf@fuf.sh.cvut.cz Status: Closed Bug Type: Misbehaving function Assigned To: Comments: Wrong. ! is logical operation, and as such should return boolean. 1 is boolean true, so !1 will be boolean false. If you do not like this, submit feature request. Full Bug description available at: http://bugs.php.net/version4/?id=4805

« previous php.dev (#20188) next »