mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
* 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.
This commit is contained in:
parent
f1f4e6f478
commit
7a167cd0c1
5 changed files with 64 additions and 48 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue