]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.6' into PHP-7.0
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 30 Aug 2016 00:08:50 +0000 (02:08 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 30 Aug 2016 00:13:48 +0000 (02:13 +0200)
1  2 
NEWS
ext/standard/file.c

diff --cc NEWS
index 4eb5a7d531682673c1c59f99ac96e757c31f5e28,a05fa844c5104883f24ebb7cb8a7e3d8970af824..198af3ce26d1a22d86e205b46ca96ca8d72e2f2b
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -80,18 -48,11 +80,20 @@@ PH
    . Fixed bug #72278 (getimagesize returning FALSE on valid jpg). (cmb)
    . Fixed bug #65550 (get_browser() incorrectly parses entries with "+" sign).
      (cmb)
+   . Fixed bug #71882 (Negative ftruncate() on php://memory exhausts memory).
+     (cmb)
  
 +- Streams:
 +  . Fixed bug #72853 (stream_set_blocking doesn't work). (Laruence)
 +  . Fixed bug #72764 (ftps:// opendir wrapper data channel encryption fails
 +    with IIS FTP 7.5, 8.5). (vhuk)
 +
 +- Sysvshm:
 +  . Fixed bug #72858 (shm_attach null dereference). (Anatol)
 +
  - XML:
    . Fixed bug #72085 (SEGV on unknown address zif_xml_parse). (cmb)
 +  . Fixed bug #72714 (_xml_startElementHandler() segmentation fault). (cmb)
  
  - ZIP:
    . Fixed bug #68302 (impossible to compile php with zip support). (cmb)
index 5c90b305591a078e7e90eeca7512849bf71f64de,d346ed9e922632e4dc2a64cd49e0b38e355952ae..e228ce6121db2971bf5cc21a219d18f66e75add6
@@@ -1546,10 -1512,15 +1546,15 @@@ PHP_NAMED_FUNCTION(php_if_ftruncate
                RETURN_FALSE;
        }
  
 -              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative size is not supported");
+       if (size < 0) {
 -      PHP_STREAM_TO_ZVAL(stream, &fp);
++              php_error_docref(NULL, E_WARNING, "Negative size is not supported");
+               RETURN_FALSE;
+       }
 +      PHP_STREAM_TO_ZVAL(stream, fp);
  
        if (!php_stream_truncate_supported(stream)) {
 -              php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't truncate this stream!");
 +              php_error_docref(NULL, E_WARNING, "Can't truncate this stream!");
                RETURN_FALSE;
        }