summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/snuffleupagus.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c
index 4f4bd83..22aca04 100644
--- a/src/snuffleupagus.c
+++ b/src/snuffleupagus.c
@@ -20,10 +20,7 @@ ZEND_DLEXPORT int sp_zend_startup(zend_extension *extension) {
20// LCOV_EXCL_END 20// LCOV_EXCL_END
21 21
22static inline void sp_op_array_handler(zend_op_array *const op) { 22static inline void sp_op_array_handler(zend_op_array *const op) {
23 // We need a filename, and strict mode not already enabled on this op 23 if (op->filename) {
24 if (NULL == op->filename) {
25 return;
26 } else {
27 if (SPCFG(global_strict).enable) { 24 if (SPCFG(global_strict).enable) {
28 op->fn_flags |= ZEND_ACC_STRICT_TYPES; 25 op->fn_flags |= ZEND_ACC_STRICT_TYPES;
29 } 26 }