Bug #18411: print_r(FALSE) not consistant with print_r(TRUE)
| From: | peter dot farr at eds dot com | Date: | Thu, 18 Jul 2002 13:09:10 +0000 |
| Subject: | Bug #18411: print_r(FALSE) not consistant with print_r(TRUE) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-14526@lists.php.net to get a copy of this message | ||
From: peter.farr@eds.com
Operating system: W2K Professional
PHP version: 4.2.1
PHP Bug Type: *General Issues
Bug description: print_r(FALSE) not consistant with print_r(TRUE)
No doubt there is a reason for:
print_r(TRUE) displays 1
print_r(FALSE) displays nothing
But too me, it just seems inconsistant, bad practise and very confusing.
I can find nothing in the documentation I have on, why it is like this, as
the text indicates 0 is to FALSE as 1 is to TRUE.
It is also obvious from your bug list, that the area of TRUE/FALSE and 1/0
has its problems.
--
Edit bug report at http://bugs.php.net/?id=18411&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18411&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18411&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18411&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18411&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18411&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18411&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18411&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18411&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18411&r=globals