Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file bug37864.phpt
| From: | Nuno Lopes | Date: | Tue, 20 Jun 2006 22:07:59 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) /ext/standard/tests/file bug37864.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-38842@lists.php.net to get a copy of this message | ||
Hi Marcus,
No, it wouldn't have the same effect. The bug is only reproducible when mmap()'ing empty files, thus the need of the file.
Maybe we can bundle an empty file, if you think it's better.
Nuno
Hello Nuno, would an empty data stream result in the same effect? If so use that rather than working on a real file. best regards marcus Tuesday, June 20, 2006, 11:49:16 PM, you wrote:nlopess Tue Jun 20 21:49:16 2006 UTCBest regards, MarcusModified files: (Branch: PHP_5_2) /php-src/ext/standard/tests/file bug37864.phptLog: make sure the test outputs what we want http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug37864.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: php-src/ext/standard/tests/file/bug37864.phpt diff -u php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.2 php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.3--- php-src/ext/standard/tests/file/bug37864.phpt:1.1.2.2 Tue Jun 20 19:32:59 2006 +++ php-src/ext/standard/tests/file/bug37864.phpt Tue Jun 20 21:49:16 2006@@ -3,8 +3,10 @@ --FILE-- <?php$tmpfname = tempnam("/tmp", "emptyfile"); - echo file_get_contents($tmpfname), "done."; + var_dump(file_get_contents($tmpfname)); + echo "done.\n"; unlink($tmpfname);?> --EXPECT-- +string(0) "" done.