summaryrefslogtreecommitdiff
path: root/src/sp_sloppy.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2021-08-02 10:42:12 +0200
committerBen Fuhrmannek2021-08-02 10:42:12 +0200
commit4cda0120313dfd5d71236f6faf87416e93f5f89c (patch)
tree0c2c6d15e8ac5287fb3304f96de719547d9e847a /src/sp_sloppy.c
parent6c132e6a1d8d339a20282afb5a4af52eb6bce9db (diff)
parente62f226c3ed885808c832040872fc2d73ca46dac (diff)
Merge branch 'master' of https://github.com/jvoisin/snuffleupagus
Diffstat (limited to 'src/sp_sloppy.c')
-rw-r--r--src/sp_sloppy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp_sloppy.c b/src/sp_sloppy.c
index f9ed718..ff2d644 100644
--- a/src/sp_sloppy.c
+++ b/src/sp_sloppy.c
@@ -99,12 +99,13 @@ PHP_FUNCTION(sp_array_keys) {
99void hook_sloppy() { 99void hook_sloppy() {
100 TSRMLS_FETCH(); 100 TSRMLS_FETCH();
101 101
102 if (NULL == orig_zend_compile_file) { 102 if (NULL == orig_zend_compile_file && zend_compile_file != sp_compile_file) {
103 orig_zend_compile_file = zend_compile_file; 103 orig_zend_compile_file = zend_compile_file;
104 zend_compile_file = sp_compile_file; 104 zend_compile_file = sp_compile_file;
105 } 105 }
106 106
107 if (NULL == orig_zend_compile_string) { 107 if (NULL == orig_zend_compile_string &&
108 zend_compile_string != sp_compile_string) {
108 orig_zend_compile_string = zend_compile_string; 109 orig_zend_compile_string = zend_compile_string;
109 zend_compile_string = sp_compile_string; 110 zend_compile_string = sp_compile_string;
110 } 111 }