diff --git a/svm.c b/svm.c index bdc8da4..6607882 100755 --- a/svm.c +++ b/svm.c @@ -1373,7 +1373,11 @@ PHP_MINIT_FUNCTION(svm)/*{{{*/ php_svm_model_sc_entry = zend_register_internal_class(&ce); INIT_CLASS_ENTRY(ce, "svmexception", NULL); +#if PHP_VERSION_ID < 80500 php_svm_exception_sc_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default()); +#else + php_svm_exception_sc_entry = zend_register_internal_class_ex(&ce, zend_ce_exception); +#endif php_svm_exception_sc_entry->ce_flags |= ZEND_ACC_FINAL; /* Redirect the lib svm output */