php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57834 apc_compile_file() exits on parse error
Submitted: 2007-09-12 03:33 UTC Modified: 2007-09-18 17:35 UTC
From: tjerk dot meesters at muvee dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1 OS: Linux 2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tjerk dot meesters at muvee dot com
New email:
PHP Version: OS:

 

 [2007-09-12 03:33 UTC] tjerk dot meesters at muvee dot com
Description:
------------
When apc_compile_file() is attempted on a file with parse errors, the function doesn't return false but instead exits the process.

Reproduce code:
---------------
<?php

file_put_contents($n = tempnam("/tmp", "FOO"),'<?php a(; ?>');
var_dump(@apc_compile_file($n));
echo "Done\n";

?>


Expected result:
----------------
bool(false)
Done


Actual result:
--------------
[Wed Sep 12 15:30:32 2007] [apc-error] Error compiling /tmp/FOOLropkc in apc_compile_file.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-18 17:35 UTC] shire@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: Sat Sep 28 23:01:27 2024 UTC