diff options
author | Zeev Suraski <zeev@php.net> | 1999-05-28 11:09:39 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-05-28 11:09:39 +0000 |
commit | 7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c (patch) | |
tree | 93bd58936ab1c7d70e8641f5c02667e37477e775 /ext/standard/basic_functions.c | |
parent | f1f4e6f478450a3398817fd55c647c9277944609 (diff) | |
download | php-git-7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c.tar.gz |
* Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order.
* Use the new object/class support of Zend to make the dir functions work again.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 2dcf8f2568..99b7a8cd25 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1974,15 +1974,14 @@ void test_class_call_function(INTERNAL_FUNCTION_PARAMETERS, zend_property_refere void test_class_startup() { - zend_class_entry class_entry; + zend_class_entry test_class_entry; - class_entry.name = strdup("TestClass"); - class_entry.name_length = sizeof("TestClass")-1; + INIT_OVERLOADED_CLASS_ENTRY(test_class_entry, "TestClass", NULL, + test_class_call_function, + test_class_get_property, + test_class_set_property); - class_entry.handle_property_get = test_class_get_property; - class_entry.handle_property_set = test_class_set_property; - class_entry.handle_function_call = test_class_call_function; - register_internal_class(&class_entry); + register_internal_class(&test_class_entry); } |