diff options
Diffstat (limited to 'src/sp_sloppy.c')
| -rw-r--r-- | src/sp_sloppy.c | 5 |
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) { | |||
| 99 | void hook_sloppy() { | 99 | void 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 | } |
