38 lines
1.6 KiB
C
38 lines
1.6 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| Copyright © The PHP Group and Contributors. |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to the Modified BSD License that is |
|
|
| bundled with this package in the file LICENSE, and is available |
|
|
| through the World Wide Web at <https://www.php.net/license/>. |
|
|
| |
|
|
| SPDX-License-Identifier: BSD-3-Clause |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Marcus Boerger <helly@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef SPL_ARRAY_H
|
|
#define SPL_ARRAY_H
|
|
|
|
#include "php.h"
|
|
|
|
#define SPL_ARRAY_STD_PROP_LIST 0x00000001
|
|
#define SPL_ARRAY_ARRAY_AS_PROPS 0x00000002
|
|
#define SPL_ARRAY_CHILD_ARRAYS_ONLY 0x00000004
|
|
#define SPL_ARRAY_IS_SELF 0x01000000
|
|
#define SPL_ARRAY_USE_OTHER 0x02000000
|
|
#define SPL_ARRAY_INT_MASK 0xFFFF0000
|
|
#define SPL_ARRAY_CLONE_MASK 0x0100FFFF
|
|
|
|
extern PHPAPI zend_class_entry *spl_ce_ArrayObject;
|
|
extern PHPAPI zend_class_entry *spl_ce_ArrayIterator;
|
|
extern PHPAPI zend_class_entry *spl_ce_RecursiveArrayIterator;
|
|
|
|
PHP_MINIT_FUNCTION(spl_array);
|
|
|
|
extern void spl_array_iterator_append(zval *object, zval *append_value);
|
|
extern void spl_array_iterator_key(zval *object, zval *return_value);
|
|
|
|
#endif /* SPL_ARRAY_H */
|