|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-17 11:35 UTC] sniper@php.net
[2002-07-17 18:21 UTC] phanto@php.net
[2002-07-18 06:23 UTC] colin dot millar at unitech dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
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