#22 PHP elseif and foreach incorrectly

closed-out-of-date
nobody
Editor (71)
5
2002-09-02
2002-09-01
David Smith
No

In the function list, 'elseif' and 'foreach' statements
in PHP show up as functions.

Here is some PHP code that illustrates the bug:

<?php

if( $something )
{
// ...
}
elseif( $something_else )
{
// ...
}

foreach()
{
// ...
}

?>

After loading this text into a buffer, save it and you
will notice two functions in the function list, elseif
and foreach, even though there are no functions in this
code.

Thanks!

Discussion

  • Peter Graves
    Peter Graves
    2002-09-02

    Logged In: YES
    user_id=558172

    What version are you using?

    This seems to work correctly in 0.16.3 (and 0.16.1),
    although the bug you describe was definitely present in some
    earlier versions (0.14.1 for example).

    Or am I missing something?

    -Peter

     
  • David Smith
    David Smith
    2002-09-02

    Logged In: YES
    user_id=602471

    Ah yes. My mistake. This appears to be corrected in 0.16.1
    (maybe earlier). I will be more attentive to use the most
    recent version in the future.

    Best regards!

     
  • Peter Graves
    Peter Graves
    2002-09-02

    • status: open --> closed-out-of-date