1--TEST-- 2SOAP Server 11: bind 3--SKIPIF-- 4<?php 5if (PHP_OS_FAMILY === "Windows") { 6 die("skip currently unsupported on Windows"); 7} 8?> 9--EXTENSIONS-- 10soap 11--GET-- 12wsdl 13--INI-- 14soap.wsdl_cache_enabled=0 15--ENV-- 16LSAN_OPTIONS=detect_leaks=0 17--FILE-- 18<?php 19function Add($x,$y) { 20 return $x+$y; 21} 22 23$server = new soapserver(__DIR__."/test.wsdl"); 24ob_start(); 25$server->handle(); 26$wsdl = ob_get_contents(); 27ob_end_clean(); 28if ($wsdl == file_get_contents(__DIR__."/test.wsdl")) { 29 echo "ok\n"; 30} else { 31 echo "fail\n"; 32} 33?> 34--EXPECT-- 35ok 36