summaryrefslogtreecommitdiff
path: root/zend/opcodes.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-12 21:00:12 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-12 21:00:12 +0200
commite7d68e6bf1ceecdee6cb4df3f41edf6f94ad25a3 (patch)
treefff5bb4ec47e1e39ec7b7a9e211b66a34fb6dd0a /zend/opcodes.h
parent8779ed80dd5d6794f9d3739a2c2cf10f6b2ee767 (diff)
Complete magic! The compiler somehow optimizes the ExecuteClass out when called with no parameters whatsoever, by passing an extra argument this no longer happens. This fixes the problem that we had with Php::eval(), fix issue #183
Diffstat (limited to 'zend/opcodes.h')
-rw-r--r--zend/opcodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zend/opcodes.h b/zend/opcodes.h
index 7e6d1ec..4e78083 100644
--- a/zend/opcodes.h
+++ b/zend/opcodes.h
@@ -74,7 +74,7 @@ public:
// the zend engine is probably already busy processing opcodes, so we store
// the current execute state before we're going to switch the runtime to
// our own set of opcodes
- ExecuteState oldstate(TSRMLS_C);
+ ExecuteState execState(0 TSRMLS_CC);
// old execute state has been saved (and will automatically be restured when
// the oldstate is destructed), so we can now safely overwrite all the settings