mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
For rationale, see #6787 Extensions migrated in part 4: * simplexml * skeleton * soap * spl * sqlite3 * sysvmsg * sysvsem * tidy - also removed a check for an ancient dependency version
28 lines
393 B
PHP
28 lines
393 B
PHP
--TEST--
|
|
SOAP Server 11: bind
|
|
--EXTENSIONS--
|
|
soap
|
|
--GET--
|
|
wsdl
|
|
--INI--
|
|
soap.wsdl_cache_enabled=0
|
|
--FILE--
|
|
<?php
|
|
function Add($x,$y) {
|
|
return $x+$y;
|
|
}
|
|
|
|
$server = new soapserver(__DIR__."/test.wsdl");
|
|
ob_start();
|
|
$server->handle();
|
|
$wsdl = ob_get_contents();
|
|
ob_end_clean();
|
|
if ($wsdl == file_get_contents(__DIR__."/test.wsdl")) {
|
|
echo "ok\n";
|
|
} else {
|
|
echo "fail\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
ok
|