Bug #12630 Updated: BUG: cannot return

From: Date: Tue, 07 Aug 2001 18:28:43 +0000
Subject: Bug #12630 Updated: BUG: cannot return
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62481@lists.php.net to get a copy of this message
ID: 12630 User updated by: joustin@plusnet.pl Reported By: joustin@plusnet.pl Status: Open Bug Type: Feature/Change Request Operating System: Red Hat Linux, Win2000 sp2 PHP Version: 4.0.6 New Comment: I'm getting multiple "Undelivered Mail Returned to Sender" messages from Your mail gateway... these contain eg.: ---------- This is the Postfix program at host localhost.localdomain. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program <&&@localhost.localdomain>: unknown user: "&&" <75@localhost.localdomain>: unknown user: "75" <exec@localhost.localdomain>: unknown user: "exec" <'@localhost.localdomain>: unknown user: "'" --------- Sorry for posting here but I couldn't post to alindeman@php.net I hope You're able to cut this one :) Previous Comments: ------------------------------------------------------------------------ [2001-08-07 14:17:40] alindeman@php.net I'll make this a feature request/change... ------------------------------------------------------------------------ [2001-08-07 14:15:13] joustin@plusnet.pl BOGUS ? The above is just a workaround... I've used it, though it's the only reasonable way to code some routines. But it's quite a LONG workaround and makes the code quite obfuscated and unclear... not mentioning possible performance losses. Any plans to implement that ? (haven't seen the php source yet, but I could imagine that preety simple to implement) ------------------------------------------------------------------------ [2001-08-07 14:04:59] alindeman@php.net this is not implemented in php if you want to try something like that try... if (!test())return; ------------------------------------------------------------------------ [2001-08-07 13:59:07] joustin@plusnet.pl Tested on Red Hat ------------------------------------------------------------------------ [2001-08-07 13:54:44] joustin@plusnet.pl 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

« previous php.dev (#62481) next »