|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-06 11:47 UTC] nikic@php.net
[2012-05-06 11:50 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2012-05-06 11:50 UTC] nikic@php.net
[2014-10-07 23:26 UTC] stas@php.net
[2014-10-07 23:37 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Description: ------------ when access a empty file with file_get_contents($empty_file, NULL, NULL, NULL, 10); Test script: --------------- <?php $tmp_empty_file = __FILE__ . ".tmp"; file_put_contents($tmp_empty_file, ""); var_dump(file_get_contents($tmp_empty_file, NULL, NULL, NULL, 10)); Expected result: ---------------- string(0) "" without memory leaks Actual result: -------------- string(0) "" ==DONE== [Sun May 6 18:11:17 2012] Script: '/Users/reeze/Opensource/php-src- 5.3/ext/standard/tests/file/bugXXXX.php' /Users/reeze/Opensource/php-src-5.3/main/streams/streams.c(1360) : Freeing 0x10AB26F40 (11 bytes), script=/Users/reeze/Opensource/php-src- 5.3/ext/standard/tests/file/bugX XXX.php /Users/reeze/Opensource/php-src-5.3/ext/standard/file.c(570) : Actual location (location was relayed) === Total 1 memory leaks detected ===