|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 - 25 = ?
Subscribe to this entry?

 [2005-04-04 07:20 UTC] henktiggelaar at yahoo dot co dot uk
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_file($fh, "non_existant_file.php");

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

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-06 03:56 UTC]
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

In case this was a 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-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 12:01:25 2023 UTC