Re: note 90854 rejected from control-structures.if by thiago
| From: | Daniel Brown | Date: | Wed, 13 May 2009 14:05:49 +0000 |
| Subject: | Re: note 90854 rejected from control-structures.if by thiago | ||
| References: | 1 2 3 4 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154559@lists.php.net to get a copy of this message | ||
Right. It's better to keep in mind that, if you're not sure,
leave it there in the manual and someone else can make the decision.
I do that all the time myself as well. However, in an event like
that, where it seems confusing and there is no explanation or
description of the code, go ahead and delete it. Because if you can't
figure it out with your direct involvement in the project, it's likely
that others off the street won't be able to glean enough knowledge
from the content to make it worthwhile. As such, it really just
clutters up the page.
On Wed, May 13, 2009 at 09:53, Thiago Pojda <thiago@php.net> wrote:
> 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
>>
>
>
--
</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