xref: /PHP-8.3/ext/reflection/php_reflection.h (revision 01b3fc03)
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: George Schlossnagle <george@omniti.com>                     |
14    +----------------------------------------------------------------------+
15 */
16 
17 #ifndef PHP_REFLECTION_H
18 #define PHP_REFLECTION_H
19 
20 #include "php.h"
21 
22 extern zend_module_entry reflection_module_entry;
23 #define phpext_reflection_ptr &reflection_module_entry
24 
25 #define PHP_REFLECTION_VERSION PHP_VERSION
26 
27 BEGIN_EXTERN_C()
28 
29 /* Class entry pointers */
30 extern PHPAPI zend_class_entry *reflector_ptr;
31 extern PHPAPI zend_class_entry *reflection_exception_ptr;
32 extern PHPAPI zend_class_entry *reflection_ptr;
33 extern PHPAPI zend_class_entry *reflection_function_abstract_ptr;
34 extern PHPAPI zend_class_entry *reflection_function_ptr;
35 extern PHPAPI zend_class_entry *reflection_parameter_ptr;
36 extern PHPAPI zend_class_entry *reflection_type_ptr;
37 extern PHPAPI zend_class_entry *reflection_named_type_ptr;
38 extern PHPAPI zend_class_entry *reflection_class_ptr;
39 extern PHPAPI zend_class_entry *reflection_object_ptr;
40 extern PHPAPI zend_class_entry *reflection_method_ptr;
41 extern PHPAPI zend_class_entry *reflection_property_ptr;
42 extern PHPAPI zend_class_entry *reflection_extension_ptr;
43 extern PHPAPI zend_class_entry *reflection_zend_extension_ptr;
44 extern PHPAPI zend_class_entry *reflection_reference_ptr;
45 extern PHPAPI zend_class_entry *reflection_attribute_ptr;
46 extern PHPAPI zend_class_entry *reflection_enum_ptr;
47 extern PHPAPI zend_class_entry *reflection_enum_unit_case_ptr;
48 extern PHPAPI zend_class_entry *reflection_enum_backed_case_ptr;
49 extern PHPAPI zend_class_entry *reflection_fiber_ptr;
50 
51 PHPAPI void zend_reflection_class_factory(zend_class_entry *ce, zval *object);
52 
53 END_EXTERN_C()
54 
55 #endif /* PHP_REFLECTION_H */
56