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
 [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: Thu May 02 11:01:31 2024 UTC