Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #1629: SOAP Client/Server detection code does not handle …
…inherited classes
- Loading branch information
Showing
2 changed files
with
46 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Test for bug #1629: SOAP Client/Server detection code does not handle inherited classes | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded("soap")) { echo "skip SOAP extension required\n"; } | ||
?> | ||
--FILE-- | ||
<?php | ||
class SoapAgent extends \SoapClient | ||
{ | ||
public function __construct(string $wsdl) | ||
{ | ||
try { | ||
parent::__construct($wsdl); | ||
echo 'Success!' . PHP_EOL; | ||
} catch (\Throwable $t) { | ||
echo $t->GetMessage(), "\n"; | ||
} | ||
} | ||
} | ||
|
||
$client = new SoapAgent('test'); | ||
?> | ||
--EXPECT-- | ||
SOAP-ERROR: Parsing WSDL: Couldn't load from 'test' : failed to load external entity "test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters