PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space

From: Date: Mon, 30 Aug 1999 17:10:10 +0000
Subject: PHP 4.0 Bug #2194: newline character ( \n ) ignored/treated as a single space
Groups: php.dev 
Request: Send a blank email to php-dev+get-10355@lists.php.net to get a copy of this message
From: jkjome@creativeis.com Operating system: NT4 PHP version: 4.0 Beta 2 PHP Bug Type: Other Bug description: newline character ( \n ) ignored/treated as a single space Here is an example: <?php for ($i = 4; $i < 8; $i++) { print "I have eaten $i bagels today.\n";} ?> Even with the newline character there, no new line is generated in the output. As you can see, this happens with print, but it also happens with printf and echo. The only thing it does is add a single space where it should have been a new-line.

« previous php.dev (#10355) next »