ID: 12630
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Old Operating System: Win2000 sp2
Operating System: Red Hat Linux, Win2000 sp2
PHP Version: 4.0.6
New Comment:
Tested on Red Hat
Previous Comments:
------------------------------------------------------------------------
[2001-08-07 13:54:44] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=12630&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]