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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail2_koushik at yahoo dot co dot in
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC