From: Michael Wallner Date: Mon, 13 Feb 2012 13:29:51 +0000 (+0000) Subject: fix crash due to mixed up params order X-Git-Tag: DEV_2-before-client~41 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=b8d231837549e580c73c310fc4af87f108052c9e;p=m6w6%2Fext-http fix crash due to mixed up params order --- diff --git a/php_http_params.c b/php_http_params.c index a8b8d2d..49d0538 100644 --- a/php_http_params.c +++ b/php_http_params.c @@ -288,13 +288,13 @@ PHP_METHOD(HttpParams, __construct) if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z!/z/z/z/", &zparams, ¶m_sep, &arg_sep, &val_sep)) { switch (ZEND_NUM_ARGS()) { case 4: - zend_update_property(php_http_params_class_entry, getThis(), ZEND_STRL("param_sep"), param_sep TSRMLS_CC); + zend_update_property(php_http_params_class_entry, getThis(), ZEND_STRL("val_sep"), val_sep TSRMLS_CC); /* no break */ case 3: zend_update_property(php_http_params_class_entry, getThis(), ZEND_STRL("arg_sep"), arg_sep TSRMLS_CC); /* no break */ case 2: - zend_update_property(php_http_params_class_entry, getThis(), ZEND_STRL("val_sep"), val_sep TSRMLS_CC); + zend_update_property(php_http_params_class_entry, getThis(), ZEND_STRL("param_sep"), param_sep TSRMLS_CC); /* no break */ }