|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thies at digicol dot de
New email:
PHP Version: OS:


 [1999-12-01 03:40 UTC] thies at digicol dot de
include ""; // 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          []
    _endopen       []
    fopen          []
    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]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-02 09:58 UTC] thies at cvs dot php dot net
fixed in libzend CVS
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jan 22 01:01:23 2021 UTC