php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53302 SoapClient::SoapClient ignores include_path
Submitted: 2010-11-12 21:55 UTC Modified: -
Votes:5
Avg. Score:4.2 ± 1.0
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: zelnaga at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.3 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-11-12 21:55 UTC] zelnaga at gmail dot com
Description:
------------
Say test.wsdl is placed in the include_path but that the script running is not.

Test script:
---------------
<?php
new SoapClient('test.wsdl', array());
?>

Expected result:
----------------
I would expect there to be no output - I would expect the test.wsdl file to be loaded from the include_path.

Actual result:
--------------
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'test.wsdl' : failed to load external entity "APIService.wsdl" in /not/in/include/path/test.php:2 Stack trace: #0 /not/in/include/path/test.php2): SoapClient->SoapClient('test.wsdl', Array) #1 {main} thrown in /not/in/include/path/test.php on line 2


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 08:01:25 2020 UTC