|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-16 09:27 UTC] tceverling at yahoo dot co dot uk
[2009-10-16 09:01 UTC] andrey dot klimovskiy at f-secure dot com
[2013-07-31 02:09 UTC] yohgaki@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: yohgaki
[2013-07-31 02:09 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Description: ------------ When a COM object throws an exception, the getCode() always return 0x80020009 even when it should be some other value. This is reproducible with "Scripting.FileSystemObject", "Scripting.Dictionary" and "Autodesk.MgSdfToolkit". Reproduce code: --------------- echo 'For "Scripting.FileSystemObject".'; try { $fso = new COM("Scripting.FileSystemObject"); $f = $fso->GetFile("c:\\does not exist.txt"); } catch (Exception $e) { //print_r($e); echo dechex($e->getCode()); } echo 'For "Scripting.Dictionary".'; try { $d = new COM("Scripting.Dictionary"); $d->Remove("b"); } catch (Exception $e) { //print_r($e); echo dechex($e->getCode()); } Expected result: ---------------- For 'Scripting.FileSystemObject': 800A0035 For 'Scripting.Dictionary': 800A802B Actual result: -------------- For 'Scripting.FileSystemObject': 80020009 For 'Scripting.Dictionary': 80020009