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