svn: /php/php-src/trunk/ext/mbstring/ mbstring.c
| From: | Rui Hirokawa | Date: | Thu, 08 Sep 2011 15:20:17 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/mbstring/ mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-66382@lists.php.net to get a copy of this message | ||
hirokawa Thu, 08 Sep 2011 15:20:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316419
Log:
2nd arguments is necessary in mb_parse_str because register_globals was removed in PHP 5.4.
Changed paths:
U php/php-src/trunk/ext/mbstring/mbstring.c
Modified: php/php-src/trunk/ext/mbstring/mbstring.c
===================================================================
--- php/php-src/trunk/ext/mbstring/mbstring.c 2011-09-08 15:19:18 UTC (rev 316418)
+++ php/php-src/trunk/ext/mbstring/mbstring.c 2011-09-08 15:20:17 UTC (rev 316419)
@@ -245,7 +245,7 @@
ZEND_ARG_INFO(0, encoding)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_parse_str, 0, 0, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_mb_parse_str, 0, 0, 2)
ZEND_ARG_INFO(0, encoded_string)
ZEND_ARG_INFO(1, result)
ZEND_END_ARG_INFO()
@@ -2025,7 +2025,7 @@
#define IS_SJIS1(c) ((((c)>=0x81 && (c)<=0x9f) || ((c)>=0xe0 &&
(c)<=0xf5)) ? 1 : 0)
#define IS_SJIS2(c) ((((c)>=0x40 && (c)<=0x7e) || ((c)>=0x80 &&
(c)<=0xfc)) ? 1 : 0)
-/* {{{ proto bool mb_parse_str(string encoded_string [, array result])
+/* {{{ proto bool mb_parse_str(string encoded_string , array result)
Parses GET/POST/COOKIE data and sets global variables */
PHP_FUNCTION(mb_parse_str)
{
@@ -2036,7 +2036,7 @@
const mbfl_encoding *detected;
track_vars_array = NULL;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|z", &encstr,
&encstr_len, &track_vars_array) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz", &encstr, &encstr_len,
&track_vars_array) == FAILURE) {
return;
}