This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 158592 - syntactic error in if statement list not detected
Summary: syntactic error in if statement list not detected
Status: RESOLVED DUPLICATE of bug 211165
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-16 02:34 UTC by hifmo
Modified: 2012-04-13 14:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hifmo 2009-02-16 02:34:07 UTC
There are an error in the next script. It needs the "endif;" clause but the php ide say nothing!!!
It doesn't produce any output anyway.

<?php
        $people=array(1=>array("name"=>"Jhon","age"=>28),2=>array("name"=>"Barbara","age"=>67));

        foreach($people as &$person)
            if ($person["age"]>=35):
                $person["group"]="old";
            else:
                $person["group"]="young";

        print_r($people);
?>

note: It doesn't produce any output.
Comment 1 hifmo 2009-02-16 02:48:10 UTC
I am sorry, I was wrong!!
The php ide say at the end of the script that there are a syntax error.
Comment 2 Filip Zamboj 2009-05-14 15:37:03 UTC
this is till an issue. 

It should either underline last line where some text is present or if statement. If you would have longer code it's hard
to notice there is a bug. However, it's not P3 anymore. 
Comment 3 Tomasz Slota 2010-02-10 08:45:58 UTC
reassigning to default owner
Comment 4 Filip Zamboj 2010-09-15 12:28:23 UTC
batch reassigning
Comment 5 Tomas Mysik 2011-06-08 14:57:07 UTC
Batch reassigning.
Comment 6 Ondrej Brejla 2012-04-13 14:20:50 UTC

*** This bug has been marked as a duplicate of bug 211165 ***