[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] com php-src: Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory: e
From:       Christoph Michael Becker <cmb () php ! net>
Date:       2016-08-31 11:24:37
Message-ID: php-mail-8c732f7b265b5b980d4a41479a340b06593832495 () git ! php ! net
[Download RAW message or body]

Commit:    f215fb874ff30cf9be6322210c58021e75a7c393
Author:    Christoph M. Becker <cmbecker69@gmx.de>         Wed, 31 Aug 2016 13:24:37 +0200
Parents:   2f10db36af2776f386b7433c5cbfe79e66edd14d
Branches:  PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=f215fb874ff30cf9be6322210c58021e75a7c393

Log:
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory

To avoid BC breaks, we do not raise a warning for now.

Bugs:
https://bugs.php.net/71882

Changed paths:
  M  ext/standard/file.c


Diff:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index d346ed9..f3b6df1 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1513,7 +1513,7 @@ PHP_NAMED_FUNCTION(php_if_ftruncate)
 	}
 
 	if (size < 0) {
-		php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative size is not supported");
+		/* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Negative size is not supported"); */
 		RETURN_FALSE;
 	}


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic