#34522 [Opn]: Unexpected output

From: Date: Fri, 16 Sep 2005 07:07:14 +0000
Subject: #34522 [Opn]: Unexpected output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85135@lists.php.net to get a copy of this message
ID: 34522 User updated by: tv at net4you dot bg Reported By: tv at net4you dot bg Status: Open Bug Type: Output Control Operating System: Windows XP/Apache 2.0.54 PHP Version: 5.1.0RC1 New Comment: executing this code return an unexpected result. Changing echo "Error"; to return "Error"; fix the problem but in larger functions sometimes we need to print output. Previous Comments: ------------------------------------------------------------------------ [2005-09-16 09:06:45] tv at net4you dot bg executing this code return an unexpected result. Changing echo "Error"; to return "Error"; fix the problem but in larger functions sometimes we need to print output. ------------------------------------------------------------------------ [2005-09-16 08:57:49] tv at net4you dot bg Description: ------------ executing this code return an unexpected result. Changing echo "Error"; to return "Error"; fix the problem put in larger functions sometimes we need to print output. Reproduce code: --------------- <?php print "test". Test()."test"; function Test() { echo "Error"; } ?> Expected result: ---------------- testErrortest Actual result: -------------- Errortesttest ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34522&edit=1

« previous php.bugs (#85135) next »