From 18ade7952fb1064dad029e29270519d5aaa0f271 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 11 Apr 2025 22:09:09 +0200 Subject: Minor code simplification --- src/snuffleupagus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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) { // LCOV_EXCL_END static inline void sp_op_array_handler(zend_op_array *const op) { - // We need a filename, and strict mode not already enabled on this op - if (NULL == op->filename) { - return; - } else { + if (op->filename) { if (SPCFG(global_strict).enable) { op->fn_flags |= ZEND_ACC_STRICT_TYPES; } -- cgit v1.3