From:             
Operating system: Windows XP SP3
PHP version:      5.3.2
Package:          COM related
Bug Type:         Bug
Bug description:Can't get mesaage from com_exception

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

-- 
Edit bug report at http://bugs.php.net/bug.php?id=51904&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51904&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51904&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51904&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51904&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51904&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51904&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51904&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51904&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51904&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51904&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51904&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51904&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51904&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51904&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51904&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51904&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51904&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51904&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51904&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51904&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51904&r=mysqlcfg

Reply via email to