From: Wez Furlong Date: Mon, 22 Dec 2003 13:09:15 +0000 (+0000) Subject: export these symbols for use by SPL as a shared extension X-Git-Tag: php_ibase_before_split~547 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=273c19334b4230deefef4c1b3fc311c497d5d660;p=php export these symbols for use by SPL as a shared extension --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 00ed8abb2e..196399dc65 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1189,7 +1189,7 @@ ZEND_API int zend_startup_module(zend_module_entry *module) /* registers all functions in *library_functions in the function hash */ -int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC) +ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC) { zend_function_entry *ptr = functions; zend_function function, *reg_function; @@ -1311,7 +1311,7 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi /* count=-1 means erase all functions, otherwise, * erase the first count functions */ -void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC) +ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC) { zend_function_entry *ptr = functions; int i=0; diff --git a/Zend/zend_API.h b/Zend/zend_API.h index a52ee0bfa4..67818b860a 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -157,8 +157,8 @@ ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, /* End of parameter parsing API -- andrei */ -int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC); -void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC); +ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC); +ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC); ZEND_API int zend_register_module(zend_module_entry *module_entry); ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC); diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 1e9e35f4a4..bc4bf48535 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -949,7 +949,7 @@ int zend_std_cast_object(zval *readobj, zval *writeobj, int type, int should_fre return FAILURE; } -zend_object_handlers std_object_handlers = { +ZEND_API zend_object_handlers std_object_handlers = { zend_objects_store_add_ref, /* add_ref */ zend_objects_store_del_ref, /* del_ref */ zend_objects_store_delete_obj, /* delete_obj */ diff --git a/Zend/zend_object_handlers.h b/Zend/zend_object_handlers.h index d1478af888..9e7c6fe1c7 100644 --- a/Zend/zend_object_handlers.h +++ b/Zend/zend_object_handlers.h @@ -113,7 +113,7 @@ typedef struct _zend_object_handlers { zend_object_cast_t cast_object; } zend_object_handlers; -extern zend_object_handlers std_object_handlers; +ZEND_API zend_object_handlers std_object_handlers; ZEND_API union _zend_function *zend_std_get_static_method(zend_class_entry *ce, char *function_name_strval, int function_name_strlen TSRMLS_DC); ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *property_name, int property_name_len, zend_bool silent TSRMLS_DC); ZEND_API zend_bool zend_std_unset_static_property(zend_class_entry *ce, char *property_name, int property_name_len TSRMLS_DC);