X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=php_http_url.h;h=db7a32e9a34554d3fc0ddf19ea559a950c112be2;hb=1e674ad6a7e867b1b4d04db098b59981fe3f011d;hp=23f529dfa3ddc91caceb69d52839aee46d49bdfd;hpb=dedad9f35cbeaee56e7cca145e378cc6548198e3;p=m6w6%2Fext-http diff --git a/php_http_url.h b/php_http_url.h index 23f529d..db7a32e 100644 --- a/php_http_url.h +++ b/php_http_url.h @@ -6,12 +6,10 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2010, Michael Wallner | + | Copyright (c) 2004-2011, Michael Wallner | +--------------------------------------------------------------------+ */ -/* $Id: php_http_url_api.h 292841 2009-12-31 08:48:57Z mike $ */ - #ifndef PHP_HTTP_URL_H #define PHP_HTTP_URL_H @@ -115,9 +113,11 @@ static inline HashTable *php_http_url_to_struct(php_url *url, zval *strct TSRMLS default: zval_dtor(strct); array_init(strct); + /* no break */ case IS_ARRAY: case IS_OBJECT: INIT_PZVAL_ARRAY((&arr), HASH_OF(strct)); + break; } } else { INIT_PZVAL(&arr); @@ -161,6 +161,7 @@ extern zend_function_entry php_http_url_method_entry[]; #define php_http_url_object_new_ex php_http_object_new_ex PHP_METHOD(HttpUrl, __construct); +PHP_METHOD(HttpUrl, mod); PHP_METHOD(HttpUrl, toString); extern PHP_MINIT_FUNCTION(http_url);