cvs: ZendEngine2 / zend_API.c zend_API.h zend_object_handlers.c zend_object_handlers.h
| From: | Wez Furlong | Date: | Mon, 22 Dec 2003 13:09:16 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c zend_API.h zend_object_handlers.c zend_object_handlers.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2146@lists.php.net to get a copy of this message | ||
wez Mon Dec 22 08:09:16 2003 EDT
Modified files:
/ZendEngine2 zend_API.c zend_API.h zend_object_handlers.c
zend_object_handlers.h
Log:
export these symbols for use by SPL as a shared extension
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.229 ZendEngine2/zend_API.c:1.230
--- ZendEngine2/zend_API.c:1.229 Tue Dec 2 16:09:24 2003
+++ ZendEngine2/zend_API.c Mon Dec 22 08:09:15 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.229 2003/12/02 21:09:24 andi Exp $ */
+/* $Id: zend_API.c,v 1.230 2003/12/22 13:09:15 wez Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1189,7 +1189,7 @@
/* 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 @@
/* 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;
Index: ZendEngine2/zend_API.h
diff -u ZendEngine2/zend_API.h:1.172 ZendEngine2/zend_API.h:1.173
--- ZendEngine2/zend_API.h:1.172 Tue Dec 2 02:09:46 2003
+++ ZendEngine2/zend_API.h Mon Dec 22 08:09:15 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.h,v 1.172 2003/12/02 07:09:46 helly Exp $ */
+/* $Id: zend_API.h,v 1.173 2003/12/22 13:09:15 wez Exp $ */
#ifndef ZEND_API_H
#define ZEND_API_H
@@ -157,8 +157,8 @@
/* 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);
Index: ZendEngine2/zend_object_handlers.c
diff -u ZendEngine2/zend_object_handlers.c:1.83 ZendEngine2/zend_object_handlers.c:1.84
--- ZendEngine2/zend_object_handlers.c:1.83 Thu Dec 18 15:07:30 2003
+++ ZendEngine2/zend_object_handlers.c Mon Dec 22 08:09:15 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.c,v 1.83 2003/12/18 20:07:30 helly Exp $ */
+/* $Id: zend_object_handlers.c,v 1.84 2003/12/22 13:09:15 wez Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -949,7 +949,7 @@
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 */
Index: ZendEngine2/zend_object_handlers.h
diff -u ZendEngine2/zend_object_handlers.h:1.29 ZendEngine2/zend_object_handlers.h:1.30
--- ZendEngine2/zend_object_handlers.h:1.29 Thu Dec 18 15:07:30 2003
+++ ZendEngine2/zend_object_handlers.h Mon Dec 22 08:09:15 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.h,v 1.29 2003/12/18 20:07:30 helly Exp $ */
+/* $Id: zend_object_handlers.h,v 1.30 2003/12/22 13:09:15 wez Exp $ */
#ifndef ZEND_OBJECT_HANDLERS_H
#define ZEND_OBJECT_HANDLERS_H
@@ -113,7 +113,7 @@
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);