php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60259 Problem with return value of print()
Submitted: 2011-11-11 10:50 UTC Modified: 2011-11-11 12:52 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: mail2_koushik at yahoo dot co dot in Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.4.0RC1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 + 3 = ?
Subscribe to this entry?

 
 [2011-11-11 10:50 UTC] mail2_koushik at yahoo dot co dot in
Description:
------------
---
From manual page: http://www.php.net/function.print#refsect1-function.print-returnvalues
---

Problem with return value of print()

Is print() return 1 for its successful displaying or it always return 1 for every time?

If a print() return 1 for only successful display, then what is the different way for failure of print() ?
 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-11 12:52 UTC] gooh@php.net
-Status: Open +Status: Bogus
 [2011-11-11 12:52 UTC] gooh@php.net
print returns 1, always.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC