diff options
| author | jvoisin | 2025-04-11 22:09:09 +0200 |
|---|---|---|
| committer | jvoisin | 2025-04-11 22:09:09 +0200 |
| commit | 18ade7952fb1064dad029e29270519d5aaa0f271 (patch) | |
| tree | d923bcf6b8fd43634a3fbedfb41c841457234814 /src/snuffleupagus.c | |
| parent | 5652a25313508c79f12558325fe8d1b73f702b69 (diff) | |
Minor code simplification
Diffstat (limited to '')
| -rw-r--r-- | src/snuffleupagus.c | 5 |
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 | ||
| 22 | static inline void sp_op_array_handler(zend_op_array *const op) { | 22 | static 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 | } |
