Skip to content

[RFC] Add RFC 3986 and WHATWG compliant URL parsing support #14461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
196957b
Create separate lexbor extension
kocsismate May 11, 2025
0334e22
Add RFC 3986 and WHATWG compliant URL parsing support
kocsismate Jun 3, 2024
a09a457
Serialization
kocsismate Oct 22, 2024
3abdb0a
Improve error handling
kocsismate Oct 26, 2024
1445e55
Lot of fixes and added support for equalsTo()
kocsismate Nov 11, 2024
e4de160
Add normalization support
kocsismate Nov 13, 2024
77184ce
SOAP test fixes
kocsismate Nov 13, 2024
3b0449d
Fix some memory leaks
kocsismate Nov 13, 2024
5f90823
Some cleanups
kocsismate Nov 18, 2024
b7011b8
Changes based on discussion
kocsismate Nov 30, 2024
f20842a
Removal of Uri\Uri
kocsismate Dec 30, 2024
c88e92b
A lot of fixes and API changes
kocsismate Jan 6, 2025
c743ead
Updates
kocsismate Feb 5, 2025
19b7180
Add new tests, path fixes
kocsismate Feb 9, 2025
fb0c929
Add more tests for verifying the behavior of withers
kocsismate Feb 15, 2025
cf7ca4e
Fix code review comments
kocsismate Feb 19, 2025
9de1271
A few fixes and improvements after feedback
kocsismate Apr 14, 2025
db3b79d
Test fixes
kocsismate Apr 14, 2025
feefccf
Remove WHATWG non-raw getters
kocsismate Apr 18, 2025
190bbfd
Rename WHATWG getters again
kocsismate Apr 26, 2025
d1df694
Add UriComparisonMode
kocsismate Apr 28, 2025
0d1fc02
Expose $softErrors for Uri\WhatWg\Url::resolve()
kocsismate Apr 30, 2025
df1d0b9
Add SensitiveParameter support
kocsismate May 3, 2025
e8261f7
Proper build support
kocsismate May 19, 2025
7530dd9
Review fixes and serialization update according to the RFC
kocsismate May 20, 2025
b75cc5b
Some extension fixes
kocsismate May 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix code review comments
  • Loading branch information
kocsismate committed May 25, 2025
commit cf7ca4eca44330f1bd82e93f5fefcc112ce65b72
2 changes: 1 addition & 1 deletion EXTENSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: uri
PRIMARY MAINTAINER Máté Kocsis <[email protected]> (2024 - 2024)
PRIMARY MAINTAINER Máté Kocsis <[email protected]> (2025 - 2025)
MAINTENANCE: Maintained
STATUS: Working
SINCE: 8.5.0
Expand Down
2 changes: 1 addition & 1 deletion ext/filter/logical_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ void php_filter_validate_url(http://github.com/PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */
}

/* Parse the URI - if it fails, we return NULL */
php_uri *uri = php_uri_parse_to_struct(uri_handler, Z_STR_P(value), URI_COMPONENT_READ_NORMALIZED_FOR_MACHINE_PROCESSING, NULL);
php_uri *uri = php_uri_parse_to_struct(uri_handler, Z_STR_P(value), URI_COMPONENT_READ_NORMALIZED_ASCII, NULL);
if (uri == NULL) {
RETURN_VALIDATION_FAILED
}
Expand Down
4 changes: 2 additions & 2 deletions ext/soap/php_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ int make_http_soap_request(zval *this_ptr,
zend_argument_value_error(6, "must be a valid URI parser name");
return FALSE;
}
uri = php_uri_parse_to_struct(uri_handler, location, URI_COMPONENT_READ_NORMALIZED_FOR_MACHINE_PROCESSING, NULL);
uri = php_uri_parse_to_struct(uri_handler, location, URI_COMPONENT_READ_NORMALIZED_ASCII, NULL);
}

tmp = Z_CLIENT_STREAM_CONTEXT_P(this_ptr);
Expand Down Expand Up @@ -1161,7 +1161,7 @@ int make_http_soap_request(zval *this_ptr,
}

zend_string *loc_str = zend_string_init(loc, strlen(loc), false);
php_uri *new_uri = php_uri_parse_to_struct(uri_handler, loc_str, URI_COMPONENT_READ_NORMALIZED_FOR_MACHINE_PROCESSING, NULL);
php_uri *new_uri = php_uri_parse_to_struct(uri_handler, loc_str, URI_COMPONENT_READ_NORMALIZED_ASCII, NULL);
zend_string_release(loc_str);

if (new_uri != NULL) {
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/SoapServer/__getLastResponse.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction("f");
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/any.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('echoAnyElement');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug28969.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug29795.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LocalSoapClient extends SoapClient {
parent::__construct($wsdl, $options);
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug29839.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('EchoString');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug29844.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LocalSoapClient extends SoapClient {
$this->server->setClass('hello_world');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug30045.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('foo');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
$xml = simplexml_load_string($request);
echo $xml->children("http://schemas.xmlsoap.org/soap/envelope/")->Body->children("http://test-uri")->children()->param1->asXML(),"\n";
unset($xml);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug30106.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction("getContinentList");
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo $request;
ob_start();
$this->server->handle($request);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug30175.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ soap.wsdl_cache_enabled=0

class LocalSoapClient extends SoapClient {

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug30928.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug31695.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction("Test");
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo "$location\n";
ob_start();
$this->server->handle($request);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug31755.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ soap
--FILE--
<?php
class MySoapClient extends SoapClient {
public function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
public function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo $request, "\n";
return '';
}
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug32776.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug32941.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ soap
--FILE--
<?php
class TestSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug34449.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ soap
--FILE--
<?php
class TestSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): never {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): never {
echo "$request\n";
exit;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug34453.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('EchoString');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug34643.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LocalSoapClient extends SoapClient {
$this->server->setClass('fp');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug35142.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('PostEvents');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo "$request\n";
ob_start();
$this->server->handle($request);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug35273.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
--FILE--
<?php
class TestSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): never {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): never {
echo $request;
exit;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug36226-2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('PostEvents');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo "$request\n";
$this->server->handle($request);
return $response;
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug36226.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('PostEvents');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
echo "$request\n";
ob_start();
$this->server->handle($request);
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug36999.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('echoLong');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug37083.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ soap.wsdl_cache=3
--FILE--
<?php
class TestSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug38004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('Test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug38005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('Test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug38055.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('Test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
10 changes: 5 additions & 5 deletions ext/soap/tests/bugs/bug38067.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestSoapClient extends SoapClient {
$this->server->addFunction('Test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = 0, $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand All @@ -32,13 +32,13 @@ class TestSoapClient extends SoapClient {

$client = new TestSoapClient(__DIR__.'/bug38067.wsdl',
array('encoding' => 'ISO-8859-1'));
$str = 'test: �';
$str = 'test: �';
$res = $client->Test(array('str'=>$str));
echo $str."\n";
echo $res."\n";
echo $g."\n";
?>
--EXPECT--
test: �
test: �
test: �
test: �
test: �
test: �
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug38536.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
--FILE--
<?php
class LocalSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug39121.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
--FILE--
<?php
class LocalSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug39815.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('test');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug42692.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestSoap extends SoapClient {
$this->server->addFunction("checkAuth");
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug43045.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestSoapClient extends SoapClient {
$this->server = new SoapServer($wsdl, $options);
$this->server->addFunction('test');
}
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug44882.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
<?php
class TestSoapClient extends SoapClient
{
public function __doRequest($req, $loc, $act, $ver, $one_way = 0, ?string $uriParserName = null): string
public function __doRequest($req, $loc, $act, $ver, $one_way = 0, ?string $uriParserClass = null): string
{
return <<<XML
<?xml version="1.0" encoding="UTF-8"?>
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug46419.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LocalSoapClient extends SoapClient {
$this->server->addFunction('bar');
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
4 changes: 2 additions & 2 deletions ext/soap/tests/bugs/bug47021.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ $options = [

class BugSoapClient extends SoapClient
{
public function __doRequest($request, $location, $action, $version, $one_way = null, ?string $uriParserName = null): string
public function __doRequest($request, $location, $action, $version, $one_way = null, ?string $uriParserClass = null): string
{
$response = parent::__doRequest($request, $location, $action, $version, $one_way, $uriParserName);
$response = parent::__doRequest($request, $location, $action, $version, $one_way, $uriParserClass);

var_dump(strlen($response));

Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug50675.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ soap
<?php

class TestSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug50762.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class LocalSoapClient extends SoapClient {
$this->server->setObject(new testSoap());
}

function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): string {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): string {
ob_start();
$this->server->handle($request);
$response = ob_get_contents();
Expand Down
2 changes: 1 addition & 1 deletion ext/soap/tests/bugs/bug54911.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ soap
--FILE--
<?php
class XSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserName = null): never {
function __doRequest($request, $location, $action, $version, $one_way = false, ?string $uriParserClass = null): never {
echo self::$crash;
}
}
Expand Down
Loading