PHP 4.0 Bug #3006: str_repeat messing with the output buffer?

From: Date: Sun, 19 Dec 1999 19:53:10 +0000
Subject: PHP 4.0 Bug #3006: str_repeat messing with the output buffer?
Groups: php.dev 
Request: Send a blank email to php-dev+get-13851@lists.php.net to get a copy of this message
From: leon@leonatkinson.com Operating system: Windows PHP version: 4.0 Beta 3 PHP Bug Type: Misbehaving function Bug description: str_repeat messing with the output buffer? This code: <HTML> <HEAD> <TITLE>str_repeat</TITLE> </HEAD> <BODY> <? print(str_repeat("PHP!<BR>\n", 10)); ?> </BODY> </HTML> produces this: <HTML> <HEAD> <TITLE>str_repeat</TITLE> </HEAD> <BODY> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> PHP!<BR> </BODY> </HTML> Note the extra space just before the closing body tag.

« previous php.dev (#13851) next »