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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Sep 29 01:01:26 2024 UTC