#19575 [NEW]: Boolean prints 1 for TRUE but nothing for FALSE
| From: | jc at mega-bucks dot co dot jp | Date: | Tue, 24 Sep 2002 11:56:43 +0000 |
| Subject: | #19575 [NEW]: Boolean prints 1 for TRUE but nothing for FALSE | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-20190@lists.php.net to get a copy of this message | ||
From: jc@mega-bucks.co.jp
Operating system: Red Hat Linux 7.2
PHP version: 4.2.3
PHP Bug Type: Documentation problem
Bug description: Boolean prints 1 for TRUE but nothing for FALSE
A boolean of TRUE will print as "1" whereas FALSE prints as ""
This has caused me a problem since I had assume that TRUE would print as
TRUE and FALSE would print as FALSE.
Could you add this to the documentation. I could understand 1/0,
TRUE/FALSE, but "1"/"" is not evident at first.
I'd even suggest a change request that booleans print out as TRUE/FALSE
(since booleans really should not be 1/0 integers or empty/non-empty
strings but BOOLEANS) but I'm sure that would ge shot down. :)
--
Edit bug report at http://bugs.php.net/?id=19575&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19575&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19575&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19575&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19575&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19575&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19575&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19575&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19575&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19575&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19575&r=globals