Bug #72163 [Fbk->Asn]: Exceptions does not displays in browser output with low memory limit
| From: | i at blackrabbit dot info | Date: | Mon, 26 Jul 2021 23:04:35 +0000 |
| Subject: | Bug #72163 [Fbk->Asn]: Exceptions does not displays in browser output with low memory limit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235385@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72163&edit=1
ID: 72163
User updated by: i at blackrabbit dot info
Reported by: i at blackrabbit dot info
Summary: Exceptions does not displays in browser output with
low memory limit
-Status: Feedback
+Status: Assigned
Type: Bug
Package: Output Control
Operating System: OS X 10.11.5 Beta (15F31a)
PHP Version: 7.0.6
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Yes, it is reproducible in 7.4.21 while it works as expected in 8.0.8. Assuming this is very rare
and that 7.x going to be deprecated in 4 months it can be closed I think :) Thanks.
Previous Comments:
------------------------------------------------------------------------
[2021-07-26 21:37:20] cmb@php.net
Do you still experience this with any of the actively supported
PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2016-05-05 08:37:22] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72163&edit=1