mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- MFH Use engine call to register interfaces (steph)
This commit is contained in:
parent
6c0f166794
commit
37f5474ce9
1 changed files with 1 additions and 4 deletions
|
@ -42,10 +42,7 @@ void spl_register_interface(zend_class_entry ** ppce, char * class_name, zend_fu
|
|||
|
||||
INIT_CLASS_ENTRY(ce, class_name, functions);
|
||||
ce.name_length = strlen(class_name);
|
||||
*ppce = zend_register_internal_class(&ce TSRMLS_CC);
|
||||
|
||||
/* entries changed by initialize */
|
||||
(*ppce)->ce_flags = ZEND_ACC_INTERFACE;
|
||||
*ppce = zend_register_internal_interface(&ce TSRMLS_CC);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue