ID: 34854 User updated by: marcus at synchromedia dot co dot uk Reported By: marcus at synchromedia dot co dot uk -Status: Feedback +Status: Open Bug Type: Feature/Change Request Operating System: * PHP Version: 5CVS-2005-10-13 (snap) New Comment:
Because for any given deployment, the absolute path may be different, simply because some servers put stuff in different places, or because it's in a different virtual host etc. Both of those situations are normally handled using the include path, but in this case we're denied that possibility. Previous Comments: ------------------------------------------------------------------------ [2005-10-13 13:03:28] [EMAIL PROTECTED] >I'm having to copy my WSDL files into every >place that my class library is called from because the URL >resolution will only ever look in the calling directory and >not in the include path that allowed it to find my classes. Why not to use absolute path then? ------------------------------------------------------------------------ [2005-10-13 12:58:10] marcus at synchromedia dot co dot uk Description: ------------ This is a minor thing that's been troubling me, making it difficult to deploy a salesforce.com SOAP client across multiple projects. Salesforce is a particular interest because its WSDL files are not available directly online - you have to download and save local copies manually. When constructing a SOAPClient object, the WSDL parameter provided is treated like a URL (because it will usually BE a URL). For 'local' URLs, it searches the current directory, including any relative path that it uses. However, because it is fundamentally a URL and not a file request like an include, it does not search the include path. The net result of this is that I'm having to copy my WSDL files into every place that my class library is called from because the URL resolution will only ever look in the calling directory and not in the include path that allowed it to find my classes. An alternative would be to allow providing the WSDL as a literal string, probably read using file_get_contents() which does support using the include path. A worse solution is to provide the WSDL contents as the response to a separate HTTP call (i.e. act like the WSDL is online after all). This would work, but it's way less efficient. It's also hard to configure across multiple installations. I can't use an absolute path as it's deployed in multiple configurations on multiple servers, and config is bad enough already. So, please can you either extend the WSDL parameter to accept a literal string or a local path that's not handled as a URL. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34854&edit=1