#42799 [Opn->Fbk]: the \n to jump to a new line is ignored
| From: | jani@php.net | Date: | Sun, 30 Sep 2007 04:36:45 +0000 |
| Subject: | #42799 [Opn->Fbk]: the \n to jump to a new line is ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117968@lists.php.net to get a copy of this message | ||
ID: 42799
Updated by: jani@php.net
Reported By: castletoday at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: Performance problem
Operating System: xp
-PHP Version: 5.2.4
+PHP Version: 5.1.4
New Comment:
Upgrade to 5.2.4 first..
Previous Comments:
------------------------------------------------------------------------
[2007-09-29 21:52:13] castletoday at hotmail dot com
Description:
------------
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:
---------------
<?php
print 'The comments are texts in a script that are ignored by the PHP
engine';
print"\n";
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
test
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)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42799&edit=1