|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2000, Version 4.0.1
-- Parse errors in the php.ini files under Windows will no longer mess up the
- HTTP headers in CGI mode and are now displayed in a message box (Zeev)
+- Fixed a bug in rawurldecode() that would cause in rawurldecode() corrupting
+ its argument (Zeev)
+- Parse errors (or other errors) in the php.ini files under Windows will no
+ longer mess up the HTTP headers in CGI mode and are now displayed in a
+ message box (Zeev)
- Fixed a crash in OCIFetchStatement() when trying to read after all data
has already been read. (Thies)
- fopen_wrappers() are now extensible via modules (Hartmut Holzgraefe)
{
pval **arg;
int len;
+ char *str;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
if (!(*arg)->value.str.len) {
RETURN_FALSE;
}
- len = php_raw_url_decode((*arg)->value.str.val, (*arg)->value.str.len);
+ str = estrndup(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg));
+ len = php_raw_url_decode(str, Z_STRLEN_PP(arg));
- RETVAL_STRINGL((*arg)->value.str.val, len, 1);
+ RETVAL_STRINGL(str, len, 0);
}
/* }}} */