mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
Put zend_lookup_class_ex back into the API for BC.
This commit is contained in:
@@ -70,6 +70,7 @@ static inline void safe_free_zval_ptr_rel(zval *p ZEND_FILE_LINE_DC ZEND_FILE_LI
|
||||
}
|
||||
}
|
||||
ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry ***ce TSRMLS_DC);
|
||||
ZEND_API int zend_lookup_class_ex(char *name, int name_length, int use_autoload, zend_class_entry ***ce TSRMLS_DC);
|
||||
ZEND_API int zend_u_lookup_class(zend_uchar type, zstr name, int name_length, zend_class_entry ***ce TSRMLS_DC);
|
||||
ZEND_API int zend_u_lookup_class_ex(zend_uchar type, zstr name, int name_length, int use_autoload, int do_normalize, zend_class_entry ***ce TSRMLS_DC);
|
||||
ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSRMLS_DC);
|
||||
|
||||
@@ -1200,6 +1200,11 @@ ZEND_API int zend_u_lookup_class(zend_uchar type, zstr name, int name_length, ze
|
||||
return zend_u_lookup_class_ex(type, name, name_length, 1, 1, ce TSRMLS_CC);
|
||||
}
|
||||
|
||||
ZEND_API int zend_lookup_class_ex(char *name, int name_length, int use_autoload, zend_class_entry ***ce TSRMLS_DC)
|
||||
{
|
||||
return zend_u_lookup_class_ex(IS_STRING, ZSTR(name), name_length, use_autoload, 1, ce TSRMLS_CC);
|
||||
}
|
||||
|
||||
ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry ***ce TSRMLS_DC)
|
||||
{
|
||||
return zend_u_lookup_class(IS_STRING, ZSTR(name), name_length, ce TSRMLS_CC);
|
||||
|
||||
Reference in New Issue
Block a user