php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24036 print returns bool, not void, or?
Submitted: 2003-06-05 08:14 UTC Modified: 2003-06-05 16:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: geert at kemuri dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.2 OS:
Private report: No CVE-ID: None
 [2003-06-05 08:14 UTC] geert at kemuri dot org
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-05 08:21 UTC] alindeman@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 [2003-06-05 16:10 UTC] torben@php.net
Actually, it returns integer 1, always. Updated in the docs.

Torben
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of alindeman
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=16dc80031f67dac53c706fdec17c996480f3ea78
Log: fix #24036
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 17:01:27 2024 UTC