X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_property_proxy.c;h=908ae9f071214b860c9aeca11b9338d3ed12c0bb;hb=a5bf469d59f8b88f00a8497599fd6388165af735;hp=426f3c3dd2a6f5d63d7b7575d4c2f6b4df80c594;hpb=e76f27074a23b1cf83fdd81f97a5c767399225a6;p=m6w6%2Fext-http diff --git a/php_http_property_proxy.c b/php_http_property_proxy.c index 426f3c3..908ae9f 100644 --- a/php_http_property_proxy.c +++ b/php_http_property_proxy.c @@ -1,7 +1,17 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ #include "php_http.h" - php_http_property_proxy_t *php_http_property_proxy_init(php_http_property_proxy_t *proxy, zval *object, zval *member TSRMLS_DC) { if (!proxy) { @@ -127,7 +137,7 @@ static zval *php_http_property_proxy_object_read_dimension(zval *object, zval *o } } else { offset = php_http_ztyp(IS_STRING, offset); - if (SUCCESS == zend_hash_find(Z_ARRVAL_P(property), Z_STRVAL_P(offset), Z_STRLEN_P(offset), (void *) &data)) { + if (SUCCESS == zend_symtable_find(Z_ARRVAL_P(property), Z_STRVAL_P(offset), Z_STRLEN_P(offset), (void *) &data)) { retval = *data; } zval_ptr_dtor(&offset); @@ -188,3 +198,13 @@ PHP_MINIT_FUNCTION(http_property_proxy) return SUCCESS; } + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ +