#24036 [NEW]: print returns bool, not void, or?
| From: | geert at kemuri dot org | Date: | Thu, 05 Jun 2003 13:14:27 +0000 |
| Subject: | #24036 [NEW]: print returns bool, not void, or? | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969354278@lists.php.net to get a copy of this message | ||
From: geert at kemuri dot org
Operating system:
PHP version: 4.3.2
PHP Bug Type: Documentation problem
Bug description: print returns bool, not void, or?
After a nice debate of what ownz echo or print on channel #php/IRCNet, I
found out a fishy thing in the docs:
void print ( string arg)
Outputs arg. Returns TRUE on success or FALSE on failure.
TRUE/FALSE ain't void imho :)
Regards!
Geert
--
Edit bug report at http://bugs.php.net/?id=24036&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24036&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24036&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24036&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24036&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24036&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24036&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24036&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24036&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24036&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24036&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24036&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24036&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24036&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24036&r=gnused