|  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: 2021-07-27 14:24 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: i at blackrabbit dot info Assigned: cmb (profile)
Status: Closed Package: Output Control
PHP Version: 7.0.6 OS: OS X 10.11.5 Beta (15F31a)
Private report: No CVE-ID: None
 [2016-05-05 08:37 UTC] i at blackrabbit dot info
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:
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-26 21:37 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-26 21:37 UTC]
Do you still experience this with any of the actively supported
PHP versions[1]?

[1] <>
 [2021-07-26 23:04 UTC] i at blackrabbit dot info
-Status: Feedback +Status: Assigned
 [2021-07-26 23:04 UTC] i at blackrabbit dot info
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.
 [2021-07-27 14:24 UTC]
-Status: Assigned +Status: Closed
 [2021-07-27 14:24 UTC]
Thanks for the swift reply!  Per your comment, I'm closing this
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 14:01:27 2023 UTC