Closed GoogleCodeExporter 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 comment by paul.biggar
on 5 Oct 2009 at 1:33
Thanks,
yes it is working for me too :)
and also in a function call by another function
Original comment by jeanroch...@gmail.com
on 5 Oct 2009 at 4:14
OK, fix committed in revision 3301.
Thanks for the report and verification.
Original comment by paul.biggar
on 5 Oct 2009 at 5:33
Original issue reported on code.google.com by
jeanroch...@gmail.com
on 5 Oct 2009 at 12:24Attachments: