]> granicus.if.org Git - php/commitdiff
fix build
authorHarald Radi <phanto@php.net>
Sat, 11 Jan 2003 08:59:37 +0000 (08:59 +0000)
committerHarald Radi <phanto@php.net>
Sat, 11 Jan 2003 08:59:37 +0000 (08:59 +0000)
ext/rpc/com/variant.c
ext/rpc/rpc.c
ext/rpc/rpc_proxy.c

index 194522d86bc295e0101c50abe9a36c02868de4ef..98726b9385460b61388e58dd7cb5e52498fe0b3c 100644 (file)
@@ -62,8 +62,6 @@ static zend_object_handlers variant_handlers = {
        NULL,
        NULL,
        NULL,
-       NULL,
-       NULL,
        variant_get_constructor,
        variant_get_class_entry,
        NULL,
index e2caf914c83d69c6aaa570428a22c790a44bc8b4..661c8434086816af6fd158c8113ea7b68dffe50d 100644 (file)
@@ -66,8 +66,6 @@ static zend_object_handlers rpc_handlers = {
        NULL,
        rpc_get,
        rpc_set,
-       NULL,
-       NULL,
        rpc_has_property,
        rpc_unset_property,
        rpc_get_properties,
@@ -139,6 +137,24 @@ ZEND_MINIT_FUNCTION(rpc)
        zend_llist_init(classes_list, sizeof(rpc_class_hash **), rpc_class_dtor, TRUE);
 
        FOREACH_HANDLER {
+               /*
+                       handle = DL_LOAD(path);
+       if (!handle) {
+#ifndef ZEND_WIN32
+               fprintf(stderr, "Failed loading %s:  %s\n", path, DL_ERROR());
+#else
+               fprintf(stderr, "Failed loading %s\n", path);
+#endif
+               return FAILURE;
+       }
+
+       extension_version_info = (zend_extension_version_info *) DL_FETCH_SYMBOL(handle, "extension_version_info");
+       new_extension = (zend_extension *) DL_FETCH_SYMBOL(handle, "zend_extension_entry");
+       if (!extension_version_info || !new_extension) {
+               fprintf(stderr, "%s doesn't appear to be a valid Zend extension\n", path);
+               return FAILURE;
+       }
+*/
                zend_class_entry ce;
 
                HANDLER.rpc_handler_init(module_number TSRMLS_CC);
@@ -155,7 +171,7 @@ ZEND_MINIT_FUNCTION(rpc)
 
                /* register classes and functions */
                *HANDLER.ce = zend_register_internal_class_ex(&ce, rpc_entry, NULL TSRMLS_CC);
-               zend_register_functions(HANDLER.functions, NULL, MODULE_PERSISTENT TSRMLS_CC);
+               zend_register_functions(NULLHANDLER.functions, NULL, MODULE_PERSISTENT TSRMLS_CC);
                zend_register_ini_entries(HANDLER.ini, module_number TSRMLS_CC);
        }
 
index f6d529321a3bd7d326eea76f1b28aaa2143d1295..f50579d4c294e784aa61a9fc8b7465c66dd4549a 100644 (file)
@@ -52,8 +52,6 @@ zend_object_handlers rpc_proxy_handlers = {
        NULL,
        rpc_proxy_get,
        rpc_proxy_set,
-       NULL,
-       NULL,
        rpc_proxy_has_property,
        rpc_proxy_unset_property,
        rpc_proxy_get_properties,