PHP 4.0 Bug #2882: purify says php-cgi does NOT close #included files

From: Date: Wed, 01 Dec 1999 08:40:23 +0000
Subject: PHP 4.0 Bug #2882: purify says php-cgi does NOT close #included files
Groups: php.dev 
Request: Send a blank email to php-dev+get-13326@lists.php.net to get a copy of this message
From: thies@digicol.de Operating system: solaris PHP version: 4.0 Latest CVS (01/12/1999) PHP Bug Type: Scripting Engine problem Bug description: purify says php-cgi does NOT close #included files <? include "1.inc"; // 1.inc beeing an empty file ?> purify says - which means the fd does not get closed (at least in cgi-mode) **** Purify instrumented ./php (pid 28175) **** Current file descriptors in use: 8 FIU: file descriptor 0: <stdin> FIU: file descriptor 1: <stdout> FIU: file descriptor 2: <stderr> FIU: file descriptor 3: "1", O_RDONLY * File info: -rw-rw-rw- 1 thies dcarchiv 6 Dec 1 09:31 * File position: 6 * This file descriptor was allocated from: _open [libc.so.1] _endopen [libc.so.1] fopen [libc.so.1] php3_fopen_with_path [fopen-wrappers.c:370] php3_fopen_url_wrapper [fopen-wrappers.c:890] php3_fopen_wrapper [fopen-wrappers.c:193] php_fopen_wrapper_for_zend [main.c:583] open_file_for_scanning [zend-scanner.l:238] v_compile_files [zend-scanner.l:340] compile_files [zend-scanner.l:314] compile_filename [zend-scanner.l:387] execute [zend_execute.c:1881] php_execute_script [main.c:1232] main [cgi_main.c:471] _start [crt1.o]

« previous php.dev (#13326) next »