PATH:
opt
/
alt
/
tests
/
alt-php82-pecl-xmlrpc_1.0.0-0.RC3.el8
/
tests
--TEST-- Bug #47818 (Segfault due to bound callback param) --SKIPIF-- <?php if (!extension_loaded("xmlrpc")) print "skip"; ?> --FILE-- <?php class MyXmlRpc { private $s; private $method; function impl($method_name, $params, $user_data){ $this->method = $method_name; print "Inside impl(): {$this->method}\n"; return array_sum($params); } function __construct() { $this->s = xmlrpc_server_create(); xmlrpc_server_register_method($this->s, 'add', array($this, 'impl')); } function call($req) { return xmlrpc_server_call_method($this->s, $req, null); } function getMethod() {return $this->method;} } $x = new MyXmlRpc; $resp = $x->call(xmlrpc_encode_request('add', array(1, 2, 3))); $method = $x->getMethod(); print "Global scope: $method\n"; ?> --EXPECT-- Inside impl(): add Global scope: add
[-] 003.phpt
[edit]
[-] bug70728.phpt
[edit]
[-] 001.phpt
[edit]
[-] bug40576.phpt
[edit]
[-] 006.phpt
[edit]
[-] bug72155.phpt
[edit]
[-] bug45226.phpt
[edit]
[-] bug18916.phpt
[edit]
[-] bug61264.phpt
[edit]
[-] bug40576_64bit.phpt
[edit]
[-] bug61097.phpt
[edit]
[-] bug50282.phpt
[edit]
[-] bug71501.phpt
[edit]
[-] 007.phpt
[edit]
[-] bug47818.phpt
[edit]
[-] bug50761.phpt
[edit]
[-] bug42189.phpt
[edit]
[-] 004.phpt
[edit]
[-] bug50285.phpt
[edit]
[-] bug77242.phpt
[edit]
[+]
..
[-] bug70728_64bit.phpt
[edit]
[-] 002.phpt
[edit]
[-] bug37057.phpt
[edit]
[-] bug42736.phpt
[edit]
[-] 005.phpt
[edit]
[-] bug70526.phpt
[edit]
[-] bug38431.phpt
[edit]
[-] bug51288.phpt
[edit]
[-] bug45555.phpt
[edit]
[-] bug77380.phpt
[edit]
[-] bug68027.phpt
[edit]
[-] bug74975.phpt
[edit]
[-] bug45556.phpt
[edit]
[-] bug44996.phpt
[edit]
[-] bug72647.phpt
[edit]