From:             
Operating system: Mac OS X 10.7.2 (Lion)
PHP version:      5.4SVN-2011-12-14 (snap)
Package:          Built-in web server
Bug Type:         Bug
Bug description:PHP Errors are not reported in browsers using built-in SAPI

Description:
------------
Hi

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.

According to DerickR : "With a router, PG(during_request_startup) isn't set
to 0"

Test script:
---------------
- 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

test.php :
<code>
// Forcing a fatal error
$foo = null;
$foo->bar();
</code>

router.php :
<code>
require_once 'test.php';
</code>


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60523&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60523&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60523&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60523&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60523&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60523&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60523&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60523&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60523&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60523&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60523&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60523&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60523&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60523&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60523&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60523&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60523&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60523&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60523&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60523&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60523&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60523&r=mysqlcfg

Reply via email to