]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4' into PHP-8.0
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 4 Nov 2020 13:56:54 +0000 (14:56 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 4 Nov 2020 13:57:17 +0000 (14:57 +0100)
* PHP-7.4:
  Fix #80266: parse_url silently drops port number 0

1  2 
NEWS
ext/standard/tests/url/parse_url_basic_001.phpt
ext/standard/tests/url/parse_url_basic_004.phpt
ext/standard/tests/url/parse_url_unterminated.phpt
ext/standard/url.c
ext/standard/url.h

diff --cc NEWS
index 627913e9f7efd7f70b5ce58605264467824cdc55,ad8461690bc4cf7b41db9de1a2742e3f51352319..95aa4618a7f63977155a3e13a1c5dc2224aed36d
--- 1/NEWS
--- 2/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).
index 74d510951fc285673d16c73ed4732e4e24315424,4c6190f3bc2f004f941b2ab1e5f2c1e5d014ed80..a33091a86b75191c469a0c1dd076f0bf911af376
@@@ -92,8 -98,15 +92,16 @@@ 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));
Simple merge