summaryrefslogtreecommitdiff
path: root/ext/standard/php_incomplete_class.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-07-29 08:14:29 +0000
committerAndi Gutmans <andi@php.net>2001-07-29 08:14:29 +0000
commitb99a590be3c33ae473e6e174ba68fd2eb0d08b3a (patch)
tree41e72fb90c12bcf536efe605e6532a6d00c3ee87 /ext/standard/php_incomplete_class.h
parent1e2d51855c1fc7995fa3fb9892827433fe66a57c (diff)
downloadphp-git-b99a590be3c33ae473e6e174ba68fd2eb0d08b3a.tar.gz
- More object macros
Diffstat (limited to 'ext/standard/php_incomplete_class.h')
-rw-r--r--ext/standard/php_incomplete_class.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/standard/php_incomplete_class.h b/ext/standard/php_incomplete_class.h
index 29f9642e4f..7d294f519d 100644
--- a/ext/standard/php_incomplete_class.h
+++ b/ext/standard/php_incomplete_class.h
@@ -30,13 +30,14 @@
(PHP_IC_ENTRY ? PHP_IC_ENTRY : php_create_incomplete_class(TSRMLS_C))
-#define PHP_SET_CLASS_ATTRIBUTES(struc) \
- if ((struc)->value.obj.ce == BG(incomplete_class)) { \
+#define PHP_SET_CLASS_ATTRIBUTES(struc) \
+ /* OBJECTS_FIXME: Fix for new object model */ \
+ if (Z_OBJCE_P(struc) == BG(incomplete_class)) { \
class_name = php_lookup_class_name(struc, &name_len, 1); \
free_class_name = 1; \
} else { \
- class_name = (struc)->value.obj.ce->name; \
- name_len = (struc)->value.obj.ce->name_length; \
+ class_name = Z_OBJCE_P(struc)->name; \
+ name_len = Z_OBJCE_P(struc)->name_length; \
}
#define PHP_CLEANUP_CLASS_ATTRIBUTES() \