ID: 22218 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Closed Bug Type: COM related Operating System: Windows 2000 PHP Version: 4.3.0 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. there were sooo many reports regarding this, did you ever consider reading the bugreports before filing your own ? Previous Comments: ------------------------------------------------------------------------ [2003-02-14 08:30:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-02-14 00:36:24] [EMAIL PROTECTED] One more bit of information... I found this in the event log: The exception generated was c0000005 at address 10030727 (php_COM_release) ------------------------------------------------------------------------ [2003-02-14 00:31:02] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=22218&edit=1