php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2882 purify says php-cgi does NOT close #included files
Submitted: 1999-12-01 03:40 UTC Modified: 1999-12-02 09:58 UTC
From: thies at digicol dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (01/12/1999) OS: solaris
Private report: No CVE-ID: None
 [1999-12-01 03:40 UTC] thies at digicol dot de
<?
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]


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-02 09:58 UTC] thies at cvs dot php dot net
fixed in libzend CVS
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC