Bug #53302 [Opn->Nab]: SoapClient::SoapClient ignores include_path

From: Date: Fri, 31 May 2024 19:58:38 +0000
Subject: Bug #53302 [Opn->Nab]: SoapClient::SoapClient ignores include_path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247004@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53302&edit=1 ID: 53302 Updated by: nielsdos@php.net Reported by: zelnaga at gmail dot com Summary: SoapClient::SoapClient ignores include_path -Status: Open +Status: Not a bug Type: Bug Package: SOAP related Operating System: Windows XP PHP Version: 5.3.3 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2023-06-15 08:03:27] 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 ------------------------------------------------------------------------ [2010-11-12 21:55:07] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53302&edit=1

« previous php.bugs (#247004) next »