Bug #12630: BUG: cannot "return'' with the "function() or dosomething'' construct

From: Date: Tue, 07 Aug 2001 17:54:44 +0000
Subject: Bug #12630: BUG: cannot "return'' with the "function() or dosomething'' construct
Groups: php.dev 
Request: Send a blank email to php-dev+get-62463@lists.php.net to get a copy of this message
From: joustin@plusnet.pl Operating system: Win2000 sp2 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: BUG: cannot "return'' with the "function() or dosomething'' construct Hello! This seems quite odd... In the ... function() or dosomething; ...construct it seems that PHP only allows the usage of standard operators and functions in the place of "dosomething", so the 'return' doesn't work at all since it's a operator-like thingy. The following snippet will produce a parse error: ---------------------- function test(){ return false; }; function test2(){ test() or return; } ---------------------- Thanks in advance for a quick fix :) Keep up the good work! -- Edit bug report at: http://bugs.php.net/?id=12630&edit=1

« previous php.dev (#62463) next »