php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56366 bcompiler_write_file crashes PHP when source file is non-existant
Submitted: 2005-04-04 07:20 UTC Modified: 2005-04-06 03:56 UTC
From: henktiggelaar at yahoo dot co dot uk Assigned: val (profile)
Status: Closed Package: bcompiler (PECL)
PHP Version: 4.3.10 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: henktiggelaar at yahoo dot co dot uk
New email:
PHP Version: OS:

 

 [2005-04-04 07:20 UTC] henktiggelaar at yahoo dot co dot uk
Description:
------------
When bcompiler_write_file is pointed to a non-existant source file (the second parameter) it crashes PHP.

Reproduce code:
---------------
$fh = fopen("example.php", "w");
bcompiler_write_header($fh);
bcompiler_write_file($fh, "non_existant_file.php");
bcompiler_write_footer($fh);
fclose($fh);


Expected result:
----------------
Error stating the source file does not exist / cannot be opened.

Actual result:
--------------
Crash

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-06 03:56 UTC] val@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC