mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Move zend_object_iterator_funcs structures into read-only data segment
This commit is contained in:
parent
175e461369
commit
1db8402208
20 changed files with 25 additions and 25 deletions
|
@ -80,7 +80,7 @@ static void _breakiterator_rewind(zend_object_iterator *iter)
|
|||
ZVAL_LONG(&zoi_iter->current, (zend_long)pos);
|
||||
}
|
||||
|
||||
static zend_object_iterator_funcs breakiterator_iterator_funcs = {
|
||||
static const zend_object_iterator_funcs breakiterator_iterator_funcs = {
|
||||
zoi_with_current_dtor,
|
||||
zoi_with_current_valid,
|
||||
zoi_with_current_get_current_data,
|
||||
|
@ -197,7 +197,7 @@ static void _breakiterator_parts_rewind(zend_object_iterator *iter)
|
|||
iter->funcs->move_forward(iter);
|
||||
}
|
||||
|
||||
static zend_object_iterator_funcs breakiterator_parts_it_funcs = {
|
||||
static const zend_object_iterator_funcs breakiterator_parts_it_funcs = {
|
||||
zoi_with_current_dtor,
|
||||
zoi_with_current_valid,
|
||||
zoi_with_current_get_current_data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue