summaryrefslogtreecommitdiffstats
path: root/5.patch
diff options
context:
space:
mode:
Diffstat (limited to '5.patch')
-rw-r--r--5.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/5.patch b/5.patch
new file mode 100644
index 0000000..0f12460
--- /dev/null
+++ b/5.patch
@@ -0,0 +1,41 @@
+From 9b287982cc72b7dae052906550bbaaae690bf3a7 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 17 Jul 2025 15:25:53 +0200
+Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default()
+ for 8.5
+
+---
+ php_mysql.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/php_mysql.c b/php_mysql.c
+index c5b03e5..1e5ac5d 100644
+--- a/php_mysql.c
++++ b/php_mysql.c
+@@ -2313,7 +2313,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
+ * single value is an array. Also we'd have to make that one
+ * argument passed by reference.
+ */
+- zend_throw_exception(zend_exception_get_default(), "Parameter ctor_params must be an array", 0);
++ zend_throw_exception(zend_ce_exception, "Parameter ctor_params must be an array", 0);
+ return;
+ }
+ }
+@@ -2331,7 +2331,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
+ 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 {
+ if (!Z_ISUNDEF(retval)) {
+ zval_ptr_dtor(&retval);
+@@ -2341,7 +2341,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, zend_long result_
+ efree(fci.params);
+ }
+ } else if (ctor_params) {
+- zend_throw_exception_ex(zend_exception_get_default(), 0, "Class %s does not have a constructor hence you cannot use ctor_params", ZSTR_VAL(ce->name));
++ zend_throw_exception_ex(zend_ce_exception, 0, "Class %s does not have a constructor hence you cannot use ctor_params", ZSTR_VAL(ce->name));
+ }
+ }
+