Ticket #711 (closed Bugs: invalid)

Opened 2 years ago

Last modified 2 years ago

parser does not recognize in-line variable initialization

Reported by: caesar Owned by:
Priority: 1 Milestone:
Component: PHP Parser Version: 1.1.8
Keywords: Cc:

Description

second line of the following code will produce the warning "variable $source_name may not have been initialized" while it is actually initialized just one line above:

    copy ($path, $source_name = $name.'.source');
    $im = new EditableImage ($souce_name);

Change History

Changed 2 years ago by doc

I've been looking through bugs to see if mine exists and saw that in the second line it's $souce_name but in the first it's $sou*r*ce_name.

Might be the cause of your problem?

Changed 2 years ago by caesar

shit, Ii'm an idion (-:

Changed 2 years ago by ed_mann

  • status changed from new to closed
  • resolution set to invalid

I will close this issue seeing that you had a misspelling.

Note: See TracTickets for help on using tickets.