#20305 [Opn->Bgs]: print_r() handling of BOOLs
| From: | sniper@php.net | Date: | Fri, 08 Nov 2002 01:10:17 +0000 |
| Subject: | #20305 [Opn->Bgs]: print_r() handling of BOOLs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24311@lists.php.net to get a copy of this message | ||
ID: 20305
Updated by: sniper@php.net
Reported By: carlos@wfmh.org.pl
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux GNU/Debian
PHP Version: 4.2.3
New Comment:
Use var_dump() instead.
Previous Comments:
------------------------------------------------------------------------
[2002-11-07 18:03:30] carlos@wfmh.org.pl
Recently print_r() does not fully works as documented "Prints
human-readable information about a variable". If there's a BOOL
variable, no human readable output appears. I suggest to change this
and make print_r() output "(BOOL) TRUE" or "(BOOL) FALSE)" depending on
the value of BOOL variable (the "(BOOL)" prefix is to differ these from
strings "TRUE/FALSE" (just-in-case ;). Since print_r() is often used
for debugging purpose, such fix could simplify it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20305&edit=1