|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
11 + 43 = ?
Subscribe to this entry?

 [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: Sun Mar 03 13:01:28 2024 UTC