--- php_zookeeper.c.orig	2025-01-02 06:11:14 UTC
+++ php_zookeeper.c
@@ -39,7 +39,7 @@
 #include <ext/standard/info.h>
 #include <zend_extensions.h>
 
-#include <ext/standard/php_smart_string.h>
+#include <Zend/zend_smart_string.h>
 
 #include "php_zookeeper.h"
 #include "php_zookeeper_private.h"
--- php_zookeeper_exceptions.c.orig	2025-01-02 06:11:14 UTC
+++ php_zookeeper_exceptions.c
@@ -39,7 +39,7 @@ void php_zk_register_exceptions()
 	zend_class_entry ce;
 
 	INIT_CLASS_ENTRY(ce, "ZookeeperException", NULL);
-	zk_base_exception = zend_register_internal_class_ex(&ce, zend_exception_get_default());
+	zk_base_exception = zend_register_internal_class_ex(&ce, zend_ce_exception);
 
 	INIT_CLASS_ENTRY(ce, "ZookeeperOperationTimeoutException", NULL);
 	zk_optimeout_exception = zend_register_internal_class_ex(&ce, zk_base_exception);
