diff options
| -rw-r--r-- | ext/rpc/com/variant.c | 2 | ||||
| -rw-r--r-- | ext/rpc/rpc.c | 22 | ||||
| -rw-r--r-- | ext/rpc/rpc_proxy.c | 2 | 
3 files changed, 19 insertions, 7 deletions
| diff --git a/ext/rpc/com/variant.c b/ext/rpc/com/variant.c index 194522d86b..98726b9385 100644 --- a/ext/rpc/com/variant.c +++ b/ext/rpc/com/variant.c @@ -62,8 +62,6 @@ static zend_object_handlers variant_handlers = {  	NULL,  	NULL,  	NULL, -	NULL, -	NULL,  	variant_get_constructor,  	variant_get_class_entry,  	NULL, diff --git a/ext/rpc/rpc.c b/ext/rpc/rpc.c index e2caf914c8..661c843408 100644 --- a/ext/rpc/rpc.c +++ b/ext/rpc/rpc.c @@ -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);  	} diff --git a/ext/rpc/rpc_proxy.c b/ext/rpc/rpc_proxy.c index f6d529321a..f50579d4c2 100644 --- a/ext/rpc/rpc_proxy.c +++ b/ext/rpc/rpc_proxy.c @@ -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, | 
