[PECL-CVS] [pecl-networking-gearman] master: Merge pull request #41 from remicollet/issue-php85

[email protected] (Rasmus Lerdorf via GitHub)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Rasmus Lerdorf (rlerdorf)
Committer: GitHub (web-flow)
Pusher: rlerdorf
Date: 2025-08-11T18:23:52+02:00

Commit: https://github.com/php/pecl-networking-gearman/commit/921cb6398dae924450cc36611bd617c9c031ff7b
Raw diff: https://github.com/php/pecl-networking-gearman/commit/921cb6398dae924450cc36611bd617c9c031ff7b.diff

Merge pull request #41 from remicollet/issue-php85

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.