mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From 5bb707e3afa9520a5dab46567724a9fb495f63c5 Mon Sep 17 00:00:00 2001
|
|
From: Remi Collet <remi@php.net>
|
|
Date: Thu, 17 Jul 2025 15:37:07 +0200
|
|
Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default()
|
|
|
|
---
|
|
php_stomp.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/php_stomp.c b/php_stomp.c
|
|
index 8a9a109..df04507 100644
|
|
--- a/php_stomp.c
|
|
+++ b/php_stomp.c
|
|
@@ -389,7 +389,7 @@ PHP_MINIT_FUNCTION(stomp)
|
|
|
|
/* Register StompException class */
|
|
INIT_CLASS_ENTRY(ce, PHP_STOMP_EXCEPTION_CLASSNAME, stomp_exception_methods);
|
|
- stomp_ce_exception = zend_register_internal_class_ex(&ce, zend_exception_get_default());
|
|
+ stomp_ce_exception = zend_register_internal_class_ex(&ce, zend_ce_exception);
|
|
|
|
/* Properties */
|
|
zend_declare_property_null(stomp_ce_exception, "details", sizeof("details")-1, ZEND_ACC_PRIVATE );
|
|
@@ -1004,7 +1004,7 @@ PHP_FUNCTION(stomp_read_frame)
|
|
fcc.object = Z_OBJ_P(return_value);
|
|
|
|
if (zend_call_function(&fci, &fcc ) == FAILURE) {
|
|
- zend_throw_exception_ex(zend_exception_get_default(), 0 , "Could not execute %s::%s()", ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name));
|
|
+ zend_throw_exception_ex(zend_ce_exception, 0 , "Could not execute %s::%s()", ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name));
|
|
} else {
|
|
zval_ptr_dtor(&retval);
|
|
}
|