From: cosborne at gmail dot com
Operating system: Windows XP/2K3
PHP version: 5.1.4
PHP Bug Type: COM related
Bug description: PHP crashes in certain error scenarios
Description:
------------
In certain error scenarios, PHP crashes with an access violation instead
of reporting the error.
I have so far only identified one specific error that causes the crash,
but there may well be others.
Reproduce code:
---------------
$wmiLocator = new COM("WbemScripting.SWbemLocator");
$wmi = $wmiLocator->ConnectServer(".","root/MicrosoftDNS");
$a_rr = $wmi->Get("MicrosoftDNS_AType");
$a_rr->CreateInstanceFromTextRepresentation("","example.com","[*already
existent domain name*] IN A 127.0.0.1");
Expected result:
----------------
As indicated in the code, the crash only occurs when attempting to create
a domain record that already exists in the DNS server.
The functionally equivalent VBScript code reports a "Generic failure" when
the record already exists on the server.
Actual result:
--------------
Access Violation
Stack backtrace:
002cf97c 5a0759f4 OLEAUT32!SysFreeString+0x45
002cf994 5a072278 wbemdisp!SetException+0x1b
002cf9cc 5a07afd9 wbemdisp!CWbemDispatchMgr::Invoke+0x116
*** WARNING: Unable to verify checksum for php5ts.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols
for php5ts.dll -
002cf9f8 100e49ec wbemdisp!CSWbemObject::Invoke+0x2f
WARNING: Stack unwind information not available. Following frames may be
wrong.
01e791c8 7373656c php5ts!realpath+0x6c1c
--
Edit bug report at http://bugs.php.net/?id=37975&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37975&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=37975&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37975&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37975&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37975&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37975&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37975&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37975&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37975&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37975&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37975&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37975&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37975&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37975&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37975&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37975&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37975&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37975&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37975&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37975&r=mysqlcfg