Commit 57d14d47c8d for php
commit 57d14d47c8d3bdea53e25f9cba930b9a1a0c625f
Author: Gina Peter Banyard <girgias@php.net>
Date: Fri Oct 23 17:56:24 2026 +0100
intl: make breakiterator_object_construct() private
diff --git a/ext/intl/breakiterator/breakiterator_class.cpp b/ext/intl/breakiterator/breakiterator_class.cpp
index fe6eb2749ce..35c5b6956b4 100644
--- a/ext/intl/breakiterator/breakiterator_class.cpp
+++ b/ext/intl/breakiterator/breakiterator_class.cpp
@@ -43,6 +43,16 @@ zend_class_entry *CodePointBreakIterator_ce_ptr;
zend_object_handlers BreakIterator_handlers;
/* }}} */
+static void breakiterator_object_construct(zval *object,
+ BreakIterator *biter)
+{
+ BreakIterator_object *bio;
+
+ BREAKITER_METHOD_FETCH_OBJECT_NO_CHECK; //populate to from object
+ ZEND_ASSERT(bio->biter == NULL);
+ bio->biter = biter;
+}
+
U_CFUNC void breakiterator_object_create(zval *object,
BreakIterator *biter, int brand_new)
{
@@ -63,16 +73,6 @@ U_CFUNC void breakiterator_object_create(zval *object,
breakiterator_object_construct(object, biter);
}
-U_CFUNC void breakiterator_object_construct(zval *object,
- BreakIterator *biter)
-{
- BreakIterator_object *bio;
-
- BREAKITER_METHOD_FETCH_OBJECT_NO_CHECK; //populate to from object
- ZEND_ASSERT(bio->biter == NULL);
- bio->biter = biter;
-}
-
/* {{{ compare handler for BreakIterator */
static int BreakIterator_compare_objects(zval *object1,
zval *object2)
diff --git a/ext/intl/breakiterator/breakiterator_class.h b/ext/intl/breakiterator/breakiterator_class.h
index 38e83da64da..f4258cbae5b 100644
--- a/ext/intl/breakiterator/breakiterator_class.h
+++ b/ext/intl/breakiterator/breakiterator_class.h
@@ -64,8 +64,6 @@ typedef struct {
void breakiterator_object_create(zval *object, BreakIterator *break_iter, int brand_new);
-void breakiterator_object_construct(zval *object, BreakIterator *break_iter);
-
void breakiterator_register_BreakIterator_class(void);
extern zend_class_entry *BreakIterator_ce_ptr,