From:             RQuadling at GMail dot com
Operating system: Windows XP SP2
PHP version:      5.3CVS-2008-02-04 (snap)
PHP Bug Type:     Reproducible crash
Bug description:  Throwing an exception with an undefined variable results in 
Access Violation.

Description:
------------
The following code worked on a snapshot in January.

The code only seems to go wrong in ISAPI (Using Sambar Server).

Works fine in CLI mode.

php -n -derror_reporting=-1 -ddisplay_errors=1 -r "throw new
exception('foo' . $bar, 0);"

produces ...

Notice: Undefined variable: bar in Command line code on line 1

Fatal error: Uncaught exception 'Exception' with message 'foo' in Command
line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

Reproduce code:
---------------
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
throw new exception('Missing variable ' . $unknown, 0);
?>

Expected result:
----------------
Notice: Undefined variable: unknown in C:\unk.php on line 4

Fatal error: Uncaught exception 'Exception' with message 'Missing variable
' in C:\unk.php:4
Stack trace:
#0 {main}
  thrown in C:\unk.php on line 4

Actual result:
--------------
PHP has encountered an Access Violation at 00000000

-- 
Edit bug report at http://bugs.php.net/?id=44039&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=44039&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44039&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44039&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44039&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44039&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44039&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44039&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44039&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44039&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44039&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44039&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44039&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44039&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44039&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=44039&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=44039&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44039&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44039&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44039&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44039&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44039&r=mysqlcfg

Reply via email to