bug29830.phpt
来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 26 行
PHPT
26 行
--TEST--Bug #29844 (SoapServer::setClass() should not export non-public methods)--SKIPIF--<?php require_once('skipif.inc'); ?>--FILE--<?phpclass hello_world { public function hello($to) { return 'Hello ' . $to; } private function bye($to) { return 'Bye ' . $to; } }$server = new SoapServer(NULL, array("uri"=>"test://"));$server->setClass('hello_world');$functions = $server->getFunctions();foreach($functions as $func) { echo $func . "\n";}?>--EXPECT--hello
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?