Re: note 90854 rejected from control-structures.if by thiago
| From: | Thiago Pojda | Date: | Wed, 13 May 2009 13:53:10 +0000 |
| Subject: | Re: note 90854 rejected from control-structures.if by thiago | ||
| References: | 1 2 3 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154558@lists.php.net to get a copy of this message | ||
Actually I rejected it because it looked like a bug report.
I missed the "else {}" part on this line:
if(4>3){ echo "EFGH"; } else{}
A good description wouldn't hurt. :)
Thiago Henrique Pojda
http://nerdnaweb.blogspot DOT com
On Wed, May 13, 2009 at 10:22 AM, Daniel Brown <parasane@gmail.com> wrote:
> This shouldn't have been rejected, because it's not a request for
> help. If you read the code, the person is trying to show that
> different if/elseif/else styles can't be mixed in a block. However,
> it *should* be removed from the manual, because it doesn't actually
> TELL you that. So if it pops up again, simply *delete* as opposed to
> *remove*, that's all. ;-P
>
>
> On Wed, May 13, 2009 at 09:07, <thiago@php.net> wrote:
> > Note Submitter: faisun at sina dot com
> >
> > ----
> >
> > PHP Version: 5.2.9.2
> >
> > <?
> > if(2>1):
> > echo "ABCD";
> > if(4>3){ echo "EFGH"; }
> > else:
> > echo "123456";
> > endif;
> > ?>
> > Result: Parse error: parse error in E:\wwwroot\1.php on line 5
> >
> > <?
> > if(2>1):
> > echo "ABCD";
> > if(4>3){ echo "EFGH"; } else{}
> > else:
> > echo "123456";
> > endif;
> > ?>
> > Result:ABCDEFGH
> >
> > --
> > PHP Notes Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> </Daniel P. Brown>
> daniel.brown@parasane.net || danbrown@php.net
> http://www.parasane.net/ ||
> http://www.pilotpig.net/
> 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000
>
> --
> PHP Notes Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>