php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72163 Exceptions does not displays in browser output with low memory limit
Submitted: 2016-05-05 08:37 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: i at blackrabbit dot info Assigned:
Status: Open Package: Output Control
PHP Version: 7.0.6 OS: OS X 10.11.5 Beta (15F31a)
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
41 - 24 = ?
Subscribe to this entry?

 
 [2016-05-05 08:37 UTC] i at blackrabbit dot info
Description:
------------
With the low memory limit of 1Mb throwing exceptions silently terminate all browser's output. Exception still visible in the logs and everything works normally in the CLI mode, everything fine in PHP 5.

Used software:
Brew's PHP 7.0.6 (built: Apr 29 2016 04:21:39) ( NTS )
OS X's Apache 2.4.18


Test script:
---------------
<?php
set_time_limit(1);
ini_set('memory_limit', '1M');

echo 'This is output before exception.';
Throw new \Exception('This is exception!');
?>

Expected result:
----------------
Exception and output before it should be visible.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 01:01:24 2020 UTC