From: Christoph M. Becker Date: Sat, 5 Sep 2015 12:43:19 +0000 (+0200) Subject: Merge branch 'PHP-5.6' X-Git-Tag: php-7.1.0alpha1~1240 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc9da62bdb815421151958e8f2971d992291192a;p=php Merge branch 'PHP-5.6' * PHP-5.6: Fix #68291: 404 on urls with '+' Resolved conflicts: sapi/cli/php_cli_server.c --- cc9da62bdb815421151958e8f2971d992291192a diff --cc sapi/cli/php_cli_server.c index 709154da70,4ed0efb820..529f5633bf --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@@ -91,10 -91,14 +91,10 @@@ # define SOCK_EADDRINUSE WSAEADDRINUSE #endif -#ifndef S_ISDIR -#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR) -#endif - #include "ext/standard/file.h" /* for php_set_sock_blocking() :-( */ -#include "ext/standard/php_smart_str.h" +#include "zend_smart_str.h" #include "ext/standard/html.h" - #include "ext/standard/url.h" /* for php_url_decode() */ + #include "ext/standard/url.h" /* for php_raw_url_decode() */ #include "ext/standard/php_string.h" /* for php_dirname() */ #include "php_network.h" @@@ -1467,7 -1577,7 +1467,7 @@@ static void normalize_vpath(char **retv return; } - decoded_vpath_end = decoded_vpath + php_url_decode(decoded_vpath, (int)vpath_len); - decoded_vpath_end = decoded_vpath + php_raw_url_decode(decoded_vpath, vpath_len); ++ decoded_vpath_end = decoded_vpath + php_raw_url_decode(decoded_vpath, (int)vpath_len); #ifdef PHP_WIN32 {