file_get_contents leaks memory on empty file
[2006-06-20 19:24 UTC] bjori@php.net
Description:
------------
file_get_contents() leaks on empty file
Reproduce code:
---------------
bjori@lindsay php-5.1.4$ touch emptyfile
bjori@lindsay php-5.1.4$ sapi/cli/php -r 'file_get_contents("emptyfile");'
Actual result:
--------------
[Tue Jun 20 21:22:13 2006] Script: '-'
/usr/home/bjori/php-5.1.4/main/streams/streams.c(1220) :
Freeing 0x082B07E4 (1 bytes), script=-
/usr/home/bjori/php-5.1.4/ext/standard/file.c(543) : Actual
location (location was relayed)
=== Total 1 memory leaks detected ===