PHP 4.0 Bug #5014: Can read files that dont exist causing memory leak
| From: | adam at perfectgenius dot com | Date: | Tue, 13 Jun 2000 21:01:57 +0000 |
| Subject: | PHP 4.0 Bug #5014: Can read files that dont exist causing memory leak | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21255@lists.php.net to get a copy of this message | ||
From: adam@perfectgenius.com
Operating system: Slackware 7.1 (current)
PHP version: 4.0.0 Release
PHP Bug Type: Scripting Engine problem
Bug description: Can read files that dont exist causing memory leak
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
nobody 206 1.1 64.6 181696 40396 ? D 16:04 0:03 /www/bin/httpd
nobody 207 0.0 0.0 3528 0 ? SW 16:04 0:00 [httpd]
nobody 208 0.0 0.0 3528 0 ? SW 16:04 0:00 [httpd]
nobody 209 10.3 1.7 3716 1064 ? S 16:04 0:30 /www/bin/httpd
(if you want a complete ps listing please request on email)
include("/this/file/does/not/exist/.../hopefully");
$fp = fopen("$file","r");
while (!feof($fp)) {
$buffer = fread($fp,512);
}