Re: Construct Request

From: Date: Thu, 15 Apr 2004 21:31:18 +0000
Subject: Re: Construct Request
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-9237@lists.php.net to get a copy of this message
Jason Garber wrote:
function setor(&$param, $default) {
    return (isset($param) ? $param : $default);
} I tested it on 4.3.4 and 5.0 RC1, and it worked. Is passing an undefined variable as a reference parameter a legal thing to do in PHP?
That bring up an interesting point: error_reporting(E_ALL); function test_func(&$oink) { echo $oink; } test_func($moo); executing this block does not fire an E_NOTICE. S

« previous php.internals (#9237) next »