|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 15:44 UTC] felipe@php.net
-Summary: Can't get mesaage from com_exception
+Summary: Can't get message from com_exception
[2020-01-27 17:36 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
Description: ------------ I have simple script with using COM object "Scripting.FileSystemObject" that usually used in JScript (VBscript). It's work fine, but when I try to catch error (Folder doesn't exist) I can't get error message :( ----------------------------- Sorry for my bad english :) Test script: --------------- <? try { $FS = new COM('Scripting.FileSystemObject'); $fold = $FS->GetFolder('f:/bash'); $folds = $fold->SubFolders(); foreach($folds as $sf) echo $sf->name . '<br>'; } catch(com_exception $e) { echo 'Error msg: ', $e->getMessage(); } ?> Expected result: ---------------- Error msg: Path not found Actual result: -------------- Error msg: Source: Unknown Description: Unknown