Skip to content

Commit 0de88df

Browse files
authored
ext/spl: mark all zend_object_handlers as static (#13547)
1 parent 0b7ef98 commit 0de88df

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ext/spl/spl_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
#include "spl_exceptions.h"
3535

3636
/* Defined later in the file */
37-
zend_object_handlers spl_handler_ArrayIterator;
37+
static zend_object_handlers spl_handler_ArrayIterator;
3838
PHPAPI zend_class_entry *spl_ce_ArrayIterator;
3939
PHPAPI zend_class_entry *spl_ce_RecursiveArrayIterator;
4040

4141
/* ArrayObject class */
42-
zend_object_handlers spl_handler_ArrayObject;
42+
static zend_object_handlers spl_handler_ArrayObject;
4343
PHPAPI zend_class_entry *spl_ce_ArrayObject;
4444

4545
typedef struct _spl_array_object {

ext/spl/spl_dllist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "spl_dllist_arginfo.h"
3434
#include "spl_exceptions.h"
3535

36-
zend_object_handlers spl_handler_SplDoublyLinkedList;
36+
static zend_object_handlers spl_handler_SplDoublyLinkedList;
3737
PHPAPI zend_class_entry *spl_ce_SplDoublyLinkedList;
3838
PHPAPI zend_class_entry *spl_ce_SplQueue;
3939
PHPAPI zend_class_entry *spl_ce_SplStack;

ext/spl/spl_fixedarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "spl_iterators.h"
3434
#include "ext/json/php_json.h"
3535

36-
zend_object_handlers spl_handler_SplFixedArray;
36+
static zend_object_handlers spl_handler_SplFixedArray;
3737
PHPAPI zend_class_entry *spl_ce_SplFixedArray;
3838

3939
#ifdef COMPILE_DL_SPL_FIXEDARRAY

ext/spl/spl_heap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333

3434
#define SPL_HEAP_CORRUPTED 0x00000001
3535

36-
zend_object_handlers spl_handler_SplHeap;
37-
zend_object_handlers spl_handler_SplPriorityQueue;
36+
static zend_object_handlers spl_handler_SplHeap;
37+
static zend_object_handlers spl_handler_SplPriorityQueue;
3838

3939
PHPAPI zend_class_entry *spl_ce_SplHeap;
4040
PHPAPI zend_class_entry *spl_ce_SplMaxHeap;

ext/spl/spl_observer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PHPAPI zend_class_entry *spl_ce_SplSubject;
4242
PHPAPI zend_class_entry *spl_ce_SplObjectStorage;
4343
PHPAPI zend_class_entry *spl_ce_MultipleIterator;
4444

45-
PHPAPI zend_object_handlers spl_handler_SplObjectStorage;
45+
static zend_object_handlers spl_handler_SplObjectStorage;
4646

4747
/* Bit flags for marking internal functionality overridden by SplObjectStorage subclasses. */
4848
#define SOS_OVERRIDDEN_READ_DIMENSION 1

0 commit comments

Comments
 (0)