From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version: 4.3.0
PHP Bug Type: Reproducible crash
Bug description: COM function causes PHP crash
I have installed PHP 4.3.0 (as a CGI module) and Apache 2.0.43 in a Windows
2000 machine. I am updating code that works on an earlier install and I am
able to get most things working.
However, I get a php crash ("php.exe has generated errors and will be
closed by Windows") when I run scripts that use COM do MSXML validations
of an XML document against a schema.
The code works on previous PHP versions set up similarly, but not on this
version.
My code looks like this:
$validate = new COM("Msxml2.DOMDocument.4.0");
$validate->async = "false";
$validate->validateOnParse = "true";
$validate->load($xmldeliveryfile);
$code = $validate->parseError->errorCode;
$reason = $validate->parseError->reason;
It seems to be returning correct values for the error code and reason
before the PHP crash, but then everything goes south. And it seems to be
crashing earlier in the process if I deliberately create an XML validation
error.
And, yes, I do have MSXML4 installed.
Any ideas?
Thanks
--
Edit bug report at http://bugs.php.net/?id=22218&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22218&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22218&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22218&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22218&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22218&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22218&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22218&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22218&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22218&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22218&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22218&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22218&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22218&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22218&r=gnused