com php-src: Merge branch 'PHP-7.4' into PHP-8.0: NEWS ext/standard/tests/url/parse_url_basic_001.phpt ext/standard/tests/url/parse_url_basic_004.php
t ext/standard/tests/url/parse_url_unterminated.phpt ext/standard/url.c ext/standard/url.h
| From: | Christoph Michael Becker | Date: | Wed, 04 Nov 2020 13:57:17 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.4' into PHP-8.0: NEWS ext/standard/tests/url/parse_url_basic_001.phpt ext/standard/tests/url/parse_url_basic_004.php t ext/standard/tests/url/parse_url_unterminated.phpt ext/standard/url.c ext/standard/url.h |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114063@lists.php.net to get a copy of this message | ||
Commit: b8f2531ff0ac6a5e7828debd56e8e37ee04a4d6a
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 4 Nov 2020 14:56:54 +0100
Parents: 7794925ba4d7510f4afc5d5a83358aa4106bf189 00e41a10b8b7c3e14f4aab680157489219ab4a86
Branches: PHP-8.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b8f2531ff0ac6a5e7828debd56e8e37ee04a4d6a
Log:
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4:
Fix #80266: parse_url silently drops port number 0
Bugs:
https://bugs.php.net/80266
Changed paths:
MM NEWS
MM ext/standard/tests/url/parse_url_basic_001.phpt
MM ext/standard/tests/url/parse_url_basic_004.phpt
MM ext/standard/tests/url/parse_url_unterminated.phpt
MM ext/standard/url.c
MM ext/standard/url.h
Diff:
diff --cc NEWS
index 627913e9f7e,ad8461690bc..95aa4618a7f
--- a/NEWS
+++ b/NEWS
@@@ -1,36 -1,8 +1,37 @@@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?? ??? 2020, PHP 7.4.13
+?? ??? ????, PHP 8.0.0RC4
+
+- FFI:
+ . Fixed bug #79177 (FFI doesn't handle well PHP exceptions within callback).
+ (cmb, Dmitry, Nikita)
+
+- ODBC:
+ . Fixed bug #44618 (Fetching may rely on uninitialized data). (cmb)
+
+- Opcache:
+ . Fixed run-time binding of preloaded dynamically declared function. (Dmitry)
+
+- Reflection:
+ . Fixed bug #80299 (ReflectionFunction->invokeArgs confused in arguments).
+ (Nikita)
+
+- SNMP:
+ . Fixed bug #70461 (disable md5 code when it is not supported in net-snmp).
+ (Alexander Bergmann, cmb)
+
+- Standard:
+ . Don't force rebuild of symbol table, when populating $http_response_header
+ variable by the HTTP stream wrapper. (Dmitry)
+ . Fixed bug #80290 (Double free when ASSERT_CALLBACK is used with a dynamic
+ message). (Nikita)
++ . Fixed bug #80266 (parse_url silently drops port number 0). (cmb, Nikita)
+
+29 Oct 2020, PHP 8.0.0RC3
- Core:
+ . Fixed bug #8055 (Abstract trait methods returning "self" cannot be
+ fulfilled by traits). (Nikita)
. Fixed bug #80280 (ADD_EXTENSION_DEP() fails for ext/standard and ext/date).
(cmb)
. Fixed bug #80258 (Windows Deduplication Enabled, randon permission errors).
diff --cc ext/standard/url.c
index 74d510951fc,4c6190f3bc2..a33091a86b7
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@@ -92,9 -98,16 +92,17 @@@ static const char *binary_strcspn(cons
return e;
}
+/* {{{ php_url_parse */
PHPAPI php_url *php_url_parse_ex(char const *str, size_t length)
{
+ zend_bool has_port;
+ return php_url_parse_ex2(str, length, &has_port);
+ }
+
+ /* {{{ php_url_parse_ex2
+ */
+ PHPAPI php_url *php_url_parse_ex2(char const *str, size_t length, zend_bool *has_port)
+ {
char port_buf[6];
php_url *ret = ecalloc(1, sizeof(php_url));
char const *s, *e, *p, *pp, *ue;