Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down