Bug #12238: Double printing with echo and print
| From: | mahk at home dot com | Date: | Wed, 18 Jul 2001 22:39:04 +0000 |
| Subject: | Bug #12238: Double printing with echo and print | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60242@lists.php.net to get a copy of this message | ||
From: mahk@home.com
Operating system:
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: Double printing with echo and print
The following html/php script gives a duplicate of the last line.
<HTML>
<BODY><CENTER><B>
<P>System name:
<?php echo( system("hostname") ); ?>
<P></B></CENTER> </BODY>
</HTML>
returns the following html output.
<HTML>
<BODY><CENTER><B>
<P>System name:
kelsey
kelsey<P></B></CENTER> </BODY>
</HTML>
I've used the standard compile:
'./configure' '--with-mysql' '--with-apxs'
System: Linux kelsey 2.2.19-6.2.1 #1 Mon Apr 9 21:59:11 EDT 2001 i486
unknown
--
Edit bug report at: http://bugs.php.net/?id=12238&edit=1