ID:               28696
 User updated by:  frederic dot poeydomenge at free dot fr
 Reported By:      frederic dot poeydomenge at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux 2.6.6 Debian Sid
 PHP Version:      4.3.4
 New Comment:

I've just found in the manual this little sentence :

"the closing tag for the block will include the immediately trailing
newline if one is present."


Previous Comments:
------------------------------------------------------------------------

[2004-06-08 14:50:28] frederic dot poeydomenge at free dot fr

Description:
------------
Line feed following a closing tag ?> is not actually reproduced in the
output buffer.

When a space follows a closing tag, there is no problem, but when it is
a line feed character, it seems not to be taken in consideration ?

Reproduce code:
---------------
<?php
$aaa='aaa';
$bbb='bbb';
$ccc='ccc';
?>

<pre>
line 1: aaa
line 2: bbb
line 3: ccc
</pre>

<pre>
line 1: <?php echo $aaa; ?>
line 2: <?php echo $bbb; ?>
line 3: <?php echo $ccc; ?>
</pre>

Expected result:
----------------
line 1: aaa
line 2: bbb
line 3: ccc

line 1: aaa
line 2: bbb
line 3: ccc

Actual result:
--------------
line 1: aaa
line 2: bbb
line 3: ccc

line 1: aaaline 2: bbbline 3: ccc


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28696&edit=1

Reply via email to