xref: /php-src/ext/spl/spl_functions.h (revision 446b7fba)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Marcus Boerger <helly@php.net>                              |
14    +----------------------------------------------------------------------+
15  */
16 
17 #ifndef PHP_FUNCTIONS_H
18 #define PHP_FUNCTIONS_H
19 
20 #include "php.h"
21 
22 /* sub: whether to allow subclasses/interfaces
23    allow = 0: allow all classes and interfaces
24    allow > 0: allow all that match and mask ce_flags
25    allow < 0: disallow all that match and mask ce_flags
26  */
27 void spl_add_class_name(zval * list, zend_class_entry * pce, int allow, int ce_flags);
28 void spl_add_interfaces(zval * list, zend_class_entry * pce, int allow, int ce_flags);
29 void spl_add_traits(zval * list, zend_class_entry * pce, int allow, int ce_flags);
30 void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags);
31 
32 void spl_set_private_debug_info_property(const zend_class_entry *ce, const char *property, size_t property_len, HashTable *debug_info, zval *value);
33 
34 #endif /* PHP_FUNCTIONS_H */
35