|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42799 the \n to jump to a new line is ignored
Submitted: 2007-09-29 21:52 UTC Modified: 2007-10-08 01:00 UTC
Avg. Score:3.7 ± 0.7
Reproduced:11 of 11 (100.0%)
Same Version:3 (27.3%)
Same OS:5 (45.5%)
From: castletoday at hotmail dot com Assigned:
Status: No Feedback Package: Performance problem
PHP Version: 5.1.4 OS: xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: castletoday at hotmail dot com
New email:
PHP Version: OS:


 [2007-09-29 21:52 UTC] castletoday at hotmail dot com
the print"\n"; to start a new line is ignored. I am using APACHE 2.0.58 and PHP 5.1.4. 
Instead of 1 line of output I am expecting 2 lines

Reproduce code:
print 'The comments are texts in a script that are ignored by the PHP engine';
print 'test';
// For example this is single line comment
# Another single line of comment may be done by using this symbol #
For multilines comments 
we use the slash and the asterisk
to start and the asterisk and slash to end

Expected result:
The comments are texts in a script that are ignored by the PHP engine

Actual result:
The comments are texts in a script that are ignored by the PHP engine test

(All of this is in the same single line)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-30 04:36 UTC]
Upgrade to 5.2.4 first..
 [2007-10-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-01-09 06:57 UTC] cool_hottdogg at excite dot com
Alhough jani has made comment to upgrade to 5.2.4
I just want to confirm that I'm also have the same problem.
I run linux slackware 12, php 5.2.3 (default slackware), apache 2.2.4 (default slackware).
\n is ignored by php 5.2.3.
 [2008-09-11 11:09 UTC] uzmarvel at gmail dot com
I have
Apache 2.2.8
PHP 5.2.6

\n is not producing new line.
also nl2br() is producing new line but not showing <br>.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 00:01:33 2024 UTC