mirror of
https://github.com/php/pecl-xml-xmldiff.git
synced 2026-03-23 23:42:11 +01:00
use zend_ce_exception (#6)
This commit is contained in:
@@ -278,7 +278,7 @@ PHP_MINIT_FUNCTION(xmldiff)
|
||||
|
||||
INIT_CLASS_ENTRY(ce, "XMLDiff\\Exception", NULL);
|
||||
#if PHP_MAJOR_VERSION >= 7
|
||||
XMLDiffException_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
|
||||
XMLDiffException_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
|
||||
#else
|
||||
XMLDiffException_ce = zend_register_internal_class_ex(
|
||||
&ce, NULL, "exception" TSRMLS_CC
|
||||
|
||||
Reference in New Issue
Block a user