php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64956 FPM child processes stop responding after fatal script error
Submitted: 2013-06-01 16:20 UTC Modified: -
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:1 (20.0%)
From: kael dot shipman at gmail dot com Assigned:
Status: Open Package: FPM related
PHP Version: 5.4.15 OS: Arch Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-06-01 16:20 UTC] kael dot shipman at gmail dot com
Description:
------------
When php encounters a FATAL error and output buffering is ON, the child process that handled the script no longer outputs anything, even on subsequent requests to working scripts. If the below script is run, it returns a completely blank page. If a non-erred script is then run, the non-erred script also returns a blank page. It's only fixed by killing the offending child process. With output buffering disabled, everything works as expected and the child process doesn't need to be killed.

Test script:
---------------
<?php
echo "Working happily";
call_nonexistent_function();
?>

Expected result:
----------------
Working happily
FATAL ERROR: Call to undefined function call_nonexistent_function() in.....

Actual result:
--------------
Blank page - nothing at all.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC