|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-06-20 19:25 UTC] bjori@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
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 ===