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

From: Date: Sun, 10 Mar 2002 00:56:46 +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-2138@lists.php.net to get a copy of this message
ID: 15977 Updated by: wawan@sega.gatra.com Reported By: wawan@sega.gatra.com Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 4.1.1 New Comment: I'm not asking for support, but PHP scripting engine should display something informational, not just blank, really blank (0 byte in return), just like a blackhole compiler. Previous Comments: ------------------------------------------------------------------------ [2002-03-09 19:29:45] sniper@php.net 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 ------------------------------------------------------------------------ [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 (#2138) next »