[php-src] master: intl: make breakiterator_object_construct() private
| From: | Gina Peter Banyard | Date: | Fri, 23 Oct 2026 18:10:26 +0000 |
| Subject: | [php-src] master: intl: make breakiterator_object_construct() private | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142638@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-10-23T19:10:20+01:00
Commit: https://github.com/php/php-src/commit/57d14d47c8d3bdea53e25f9cba930b9a1a0c625f
Raw diff: https://github.com/php/php-src/commit/57d14d47c8d3bdea53e25f9cba930b9a1a0c625f.diff
intl: make breakiterator_object_construct() private
Changed paths:
M ext/intl/breakiterator/breakiterator_class.cpp
M ext/intl/breakiterator/breakiterator_class.h
Diff:
diff --git a/ext/intl/breakiterator/breakiterator_class.cpp
b/ext/intl/breakiterator/breakiterator_class.cpp
index fe6eb2749ce6..35c5b6956b4a 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 38e83da64dae..f4258cbae5b1 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,