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: 2021-07-27 14:24 UTC
Votes:1
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
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-26 21:37 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-26 21:37 UTC] 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>
 [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] cmb@php.net
-Status: Assigned +Status: Closed
 [2021-07-27 14:24 UTC] cmb@php.net
Thanks for the swift reply!  Per your comment, I'm closing this
ticket.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 12:01:26 2024 UTC