[PECL-CVS] [pecl-networking-gearman] master: use zend_ce_exception instead of zend_exception_get_default() for 8.5

[email protected] (Remi Collet)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Remi Collet (remicollet)
Pusher: rlerdorf
Date: 2025-07-17T14:41:59+02:00

Commit: https://github.com/php/pecl-networking-gearman/commit/7b692ca6d0184e99e242fec7be0b261988ac1755
Raw diff: https://github.com/php/pecl-networking-gearman/commit/7b692ca6d0184e99e242fec7be0b261988ac1755.diff

use zend_ce_exception instead of zend_exception_get_default() for 8.5

Changed paths:
  M  php_gearman.c


Diff:

diff --git a/php_gearman.c b/php_gearman.c
index cf4d3a7..9d885cf 100644
--- a/php_gearman.c
+++ b/php_gearman.c
@@ -121,7 +121,7 @@ PHP_MINIT_FUNCTION(gearman) {
 
 	/* XXX exception class */
 	INIT_CLASS_ENTRY(ce, "GearmanException", class_GearmanException_methods)
-	gearman_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
+	gearman_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
 	gearman_exception_ce->ce_flags |= ZEND_ACC_FINAL;
 	zend_declare_property_long(gearman_exception_ce, "code", sizeof("code")-1, 0, ZEND_ACC_PUBLIC);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.