Bug #12238 Updated: Double printing with echo and print

From: Date: Wed, 18 Jul 2001 22:45:18 +0000
Subject: Bug #12238 Updated: Double printing with echo and print
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60245@lists.php.net to get a copy of this message
ID: 12238 Updated by: cynic Reported By: mahk@home.com Old Status: Open Status: Bogus Bug Type: Strings related Operating System: PHP Version: 4.0.6 New Comment: RTFM (Reading The Fine Manual) never killed anyone. You should try that. :) "System() is just like the C version of the function in that it executes the given command and outputs the result. [...] Returns the last line of the command output on success, and false on failure." Previous Comments: ------------------------------------------------------------------------ [2001-07-18 18:39:04] mahk@home.com 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 this bug report at http://bugs.php.net/?id=12238&edit=1

« previous php.dev (#60245) next »