Closed pbiggar closed 9 years ago
Thanks for the report. Try the following patch:
Index: src/optimize/Prune_symbol_table.cpp
===================================================================
--- src/optimize/Prune_symbol_table.cpp (revision 3300)
+++ src/optimize/Prune_symbol_table.cpp (working copy)
@@ -111,6 +111,11 @@
// record variable names for removing globals
if (record_globals)
(*vars)[*in->value] = true;
+
+ // Dont do this optimization in the presence of php_errormsg.
+ // There are much better ways of doing this, but this is the simplest.
+ if (*in->value == "php_errormsg")
+ prune = false;
}
void post_variable_variable (Variable_variable* in)
It seems to work for me, but I'm running more tests now to make sure it doesnt break
anything.
Original issue reported on code.google.com by paul.biggar
on 2009-10-05 13:33:16
Thanks,
yes it is working for me too :)
and also in a function call by another function
Original issue reported on code.google.com by jeanroch.rossi
on 2009-10-05 16:14:51
OK, fix committed in revision 3301.
Thanks for the report and verification.
Original issue reported on code.google.com by paul.biggar
on 2009-10-05 17:33:10
Original issue reported on code.google.com by
jeanroch.rossi
on 2009-10-05 12:24:07