xref: /PHP-7.4/Zend/zend_inheritance.h (revision 4b9ebd83)
1 /*
2    +----------------------------------------------------------------------+
3    | Zend Engine                                                          |
4    +----------------------------------------------------------------------+
5    | Copyright (c) Zend Technologies Ltd. (http://www.zend.com)           |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 2.00 of the Zend license,     |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.zend.com/license/2_00.txt.                                |
11    | If you did not receive a copy of the Zend license and are unable to  |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@zend.com so we can mail you a copy immediately.              |
14    +----------------------------------------------------------------------+
15    | Authors: Andi Gutmans <andi@php.net>                                 |
16    |          Zeev Suraski <zeev@php.net>                                 |
17    +----------------------------------------------------------------------+
18 */
19 
20 #ifndef ZEND_INHERITANCE_H
21 #define ZEND_INHERITANCE_H
22 
23 #include "zend.h"
24 
25 BEGIN_EXTERN_C()
26 
27 ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface);
28 ZEND_API void zend_do_inheritance_ex(zend_class_entry *ce, zend_class_entry *parent_ce, zend_bool checked);
29 
30 #define zend_do_inheritance(ce, parent_ce) \
31 	zend_do_inheritance_ex(ce, parent_ce, 0)
32 
33 ZEND_API int zend_do_link_class(zend_class_entry *ce, zend_string *lc_parent_name);
34 
35 void zend_verify_abstract_class(zend_class_entry *ce);
36 void zend_check_deprecated_constructor(const zend_class_entry *ce);
37 void zend_build_properties_info_table(zend_class_entry *ce);
38 zend_bool zend_try_early_bind(zend_class_entry *ce, zend_class_entry *parent_ce, zend_string *lcname, zval *delayed_early_binding);
39 
40 END_EXTERN_C()
41 
42 #endif
43