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: 2024-05-31 19:58 UTC
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: Not a bug Package: SOAP related
PHP Version: 5.3.3 OS: Windows XP
Private report: No CVE-ID: None
 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-06-15 08:03 UTC] shoppingideasblog at gmail dot com
Shopping Ideas Blog are sharing latest news about shopping, clothing, fashion, lifestyle, wedding, photopgarhy, gits, food etc. More info to visit: (https://shoppingideasblog.com)github.com
 [2024-05-31 19:58 UTC] nielsdos@php.net
-Status: Open +Status: Not a bug
 [2024-05-31 19:58 UTC] nielsdos@php.net
The include_path only applies to the include and require functions.
The SoapClient falls in the same category as fopen etc, which don't honor the include path by default.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC