Annotation of embedaddon/php/ext/soap/tests/bugs/bug29830.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #29844 (SoapServer::setClass() should not export non-public methods)
! 3: --SKIPIF--
! 4: <?php require_once('skipif.inc'); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: class hello_world {
! 9: public function hello($to) {
! 10: return 'Hello ' . $to;
! 11: }
! 12: private function bye($to) {
! 13: return 'Bye ' . $to;
! 14: }
! 15: }
! 16:
! 17: $server = new SoapServer(NULL, array("uri"=>"test://"));
! 18: $server->setClass('hello_world');
! 19: $functions = $server->getFunctions();
! 20: foreach($functions as $func) {
! 21: echo $func . "\n";
! 22: }
! 23: ?>
! 24: --EXPECT--
! 25: hello
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>