View Issue Details

IDProjectCategoryView StatusLast Update
0000760XdebugUncategorizedpublic2011-12-14 14:56
Reporterlolautruche Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformUNIXOSMac OSXOS Version10.7.2
Product Version2.2dev 
Summary0000760: PHP Errors are not reported in browsers using built-in SAPI
DescriptionHi

Using new built-in SAPI with a router script, if a fatal error occurs (or any other notice/warning), it is reported in the PHP webserver log but not to the browser.
It makes errors harder to detect.
Steps To Reproduce- Make a test.php script forcing a fatal error
- Make a router script named router.php, requiring test.php
- Start built-in webserver : php -S localhost:8000 router.php
- Go to http://localhost:8000 with your browser
Additional Informationtest.php :
<code>
// Forcing a fatal error
$foo = null;
$foo->bar();
</code>

router.php :
<code>
require_once 'test.php';
</code>
TagsNo tags attached.
Operating System
PHP Version5.4-dev

Activities

lolautruche

2011-12-14 10:38

reporter   ~0001877

Please note that everything works as expected if no router is used (calling test.php directly)

derick

2011-12-14 14:56

administrator   ~0001878

This is actually a bug in PHP: https://bugs.php.net/bug.php?id=60523

Issue History

Date Modified Username Field Change
2011-12-14 10:33 lolautruche New Issue
2011-12-14 10:38 lolautruche Note Added: 0001877
2011-12-14 14:56 derick Note Added: 0001878
2011-12-14 14:56 derick Status new => resolved
2011-12-14 14:56 derick Resolution open => no change required
2011-12-14 14:56 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized