Hello Marcus, Sunday, May 8, 2005, 12:57:43 AM, you wrote:
>> small patch just to make zend_do_inheritance() exportable >> (I need this Zend function in my extension) MB> may i ask what you need it for? yes, when creating a class (restoring from bytecodes) with defined parent i need to setup inheritance (as zend_compile.c does). in php4 i can do it myself with zend_hash_merge(&ce->default_properties, &parent_ce->default_properties, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *), 0); zend_hash_merge(&ce->function_table, &parent_ce->function_table, (void (*)(void *)) function_add_ref, &tmp_zend_function, sizeof(zend_function), 0); ce->parent = parent_ce; if (!ce->handle_property_get) ce->handle_property_get = parent_ce->handle_property_get; if (!ce->handle_property_set) ce->handle_property_set = parent_ce->handle_property_set; if (!ce->handle_function_call) ce->handle_function_call = parent_ce->handle_function_call; but in php5 there're too many functions that handle inheritance, so i think it's useless to duplicate them -- Best regards, val mailto:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php