Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55c5586

Browse files
petkmichael-grunder
authored andcommitted
Remove HAVE_SPL
The HAVE_SPL symbol is defined in PHP to indicate the presence of the spl extension. Since PHP 5.3 the spl extension is always availabe and since PHP-7.4 the HAVE_SPL symbol has also been removed.
1 parent a537df8 commit 55c5586

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

redis.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,7 @@ PHP_MINIT_FUNCTION(redis)
772772
module_number);
773773

774774
/* Base Exception class */
775-
#if HAVE_SPL
776775
exception_ce = zend_hash_str_find_ptr(CG(class_table), "RuntimeException", sizeof("RuntimeException") - 1);
777-
#endif
778776
if (exception_ce == NULL) {
779777
exception_ce = zend_exception_get_default(TSRMLS_C);
780778
}

0 commit comments

Comments
 (0)