Bug #18393 Updated: COM Server with spaces in path cannot be instantiated
| From: | sniper@php.net | Date: | Wed, 17 Jul 2002 15:35:09 +0000 |
| Subject: | Bug #18393 Updated: COM Server with spaces in path cannot be instantiated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14416@lists.php.net to get a copy of this message | ||
ID: 18393
Updated by: sniper@php.net
Reported By: colin.millar@unitech.net
Status: Open
-Bug Type: Reproducible crash
+Bug Type: COM related
Operating System: Windows 2000 Professional SP2
PHP Version: 4.2.1
New Comment:
reclassified
Previous Comments:
------------------------------------------------------------------------
[2002-07-17 09:58:24] colin.millar@unitech.net
Trying to instantiate an object in an out of process COM Server, where
the COM Server located on a directory path that contains spaces causes
an Access Violation and fails to instantiate the object.
Example code:
$conn = new COM('SMSHost.ConnectorObject');
Example setup 1:
1. COM Server is called 'SMSHost.exe'
2. COM Server contains single object called 'ConnectorObject'
3. Path to COM Server is 'c:\new folder' (note space in folder name)
In this case, a call to instantiate the COM Server with the example
code above will lead to an Access Violation message.
Example setup 2:
1. and 2. are as above
3. Path to COM Server is 'c:\newfolder' (note no spaces in folder
name)
In this case a call to instantiate the COM Server with the example code
above works perfectly.
Additional Notes:
1. COM Server was created using Borland Delphi 6, and works with C#
under .NET, Perl, JScript, and VBScript (tested on all of these
platforms).
2. Though the documentation doesn't mention it, in process COM Servers
do not appear to work at all with PHP. In process (DLL) COM Servers can
have their objects instantiated, but any method calls lead to error
"Access Violation". Whilst I would classify this as a separate bug to
the above, I thought it best to mention it here in case it is related.
Best of luck, and please feel free to contact me should you need futher
information.
Thanks,
Colin Millar
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18393&edit=1