1
0
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:
Sara Golemon
2006-11-08 10:09:17 +00:00
parent 6cb3fad99b
commit 63c3ea2dcd
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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);
+5
View File
@@ -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);