HomePhabricator

Use the correct closure class name in the emitter

Authored by swtaarrs.

Description

Use the correct closure class name in the emitter

There were locals named clsName and className in this function, and
the call to setClosureClassName was using the wrong one. This could create two
classes with the same name: one in the file defining a trait with a closure and
any file with a class that uses the trait.

Reviewed By: @markw65

Differential Revision: D1002162

Details

Committed
Sara GolemonOct 9 2013, 8:47 PM
Parents
rOSHD1831228ac90d: Get test/slow/ext_datetime/strtotime_leak.php working with PGO
Branches
Unknown
Tags
Unknown
ChangeId
None

Event Timeline