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

From: Date: Sun, 10 Mar 2002 06:19:35 +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-2147@lists.php.net to get a copy of this message
ID: 15977 Updated by: mfischer@php.net Reported By: wawan@sega.gatra.com Status: Bogus Bug Type: Compile Failure Operating System: Linux PHP Version: 4.1.1 New Comment: When I test your example I get 'Fatal error: Only variables can be passed by reference in - on line 2' Previous Comments: ------------------------------------------------------------------------ [2002-03-09 19:56:45] wawan@sega.gatra.com 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. ------------------------------------------------------------------------ [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 (#2147) next »