Bug #15977 Updated: Function with passing by reference crash if passing by value

From: Date: Sun, 10 Mar 2002 00:29:45 +0000
Subject: Bug #15977 Updated: Function with passing by reference crash if passing by value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2136@lists.php.net to get a copy of this message
ID: 15977 Updated by: sniper@php.net Reported By: wawan@sega.gatra.com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 4.1.1 New Comment: The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Previous Comments: ------------------------------------------------------------------------ [2002-03-09 19:15:02] wawan@sega.gatra.com This is very weird, as my backgroud is delphi/pascal, function with passing by reference is efficient for string parameter. PHP supports this (?), but if we forget passing with value, (i think) compiler is crash, nothing shown in the screen, even error_reporting set E_ALL. Let's see modified sample from manual: function foo (&$var) { $var++; } foo(5); Any clue ? TIA. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15977&edit=1

« previous php.bugs (#2136) next »