|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49495 PHP doesn't run correct method
Submitted: 2009-09-08 06:27 UTC Modified: 2009-09-08 08:17 UTC
From: martin at spuetz dot net Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.3.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: martin at spuetz dot net
New email:
PHP Version: OS:


 [2009-09-08 06:27 UTC] martin at spuetz dot net
I have two methods test1() and test2(), but PHP always runs the first one.

You can see this on the following link:

It does works, when I add a parameter (change the method signature?):

The server is running 5.2.10 (, but I tried it with 5.3.0, too.

The wsdl file was generated with Zend Studio.

Reproduce code:
class Testserver {

    public function test1()
        return "test1";

    public function test2()
        return "test2";



Expected result:
string(5) "test1"
string(5) "test2"

Actual result:
string(5) "test1"
string(5) "test1"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-08 08:17 UTC] martin at spuetz dot net
I found the problem. It will work when you change the soap binding style 
to rpc.

doesn't work:
<soap:binding style="document" 

<soap:binding style="rpc" 

Greetings from Germany
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 21:01:34 2024 UTC