17#ifndef PHP_INCOMPLETE_CLASS_H
18#define PHP_INCOMPLETE_CLASS_H
24#define PHP_IC_ENTRY php_ce_incomplete_class
26#define PHP_SET_CLASS_ATTRIBUTES(struc) \
28 if (Z_OBJCE_P(struc) == php_ce_incomplete_class) { \
29 class_name = php_lookup_class_name(Z_OBJ_P(struc)); \
31 class_name = zend_string_init(INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1, 0); \
33 incomplete_class = 1; \
35 class_name = zend_string_copy(Z_OBJCE_P(struc)->name); \
38#define PHP_CLEANUP_CLASS_ATTRIBUTES() \
39 zend_string_release_ex(class_name, 0)
41#define PHP_CLASS_ATTRIBUTES \
42 zend_string *class_name; \
43 bool incomplete_class ZEND_ATTRIBUTE_UNUSED = 0
45#define INCOMPLETE_CLASS "__PHP_Incomplete_Class"
46#define MAGIC_MEMBER "__PHP_Incomplete_Class_Name"
PHPAPI zend_string * php_lookup_class_name(zend_object *object)
PHPAPI void php_register_incomplete_class_handlers(void)
PHPAPI void php_store_class_name(zval *object, zend_string *name)
struct _zend_string zend_string
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object