|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-02-14 00:31 UTC] reedc at aap dot com dot au
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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 11:00:01 2025 UTC |
Same problem here with PHP 4.3.0 I've used the following code $fso = new COM('Scripting.FileSystemObject'); and it crashes my script. My browser receives some data but no ending.