php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45524 Multiple SOAP functions with the same parameter list do not get called correctl
Submitted: 2008-07-16 01:15 UTC Modified: 2009-02-21 01:00 UTC
Votes:5
Avg. Score:4.2 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:1 (20.0%)
From: kill3r4hir3 at hotmail dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.6 OS: CentOS 5.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-07-16 01:15 UTC] kill3r4hir3 at hotmail dot com
Description:
------------
Defining SOAP functions with the same parameter list causes the first function to be called no matter which function you call. The example code shows a SOAP service defining TestFunctionA and TestFunctionB both taking a parameter named $param. No matter which one you call the function defined first (TestFunctionA) will always be called.

This will also happen if you have more than one SOAP function that does not take any parameters. Whichever function is defined first will always be called.

Reproduce code:
---------------
SOAP Server PHP:

http://pastebin.com/f13f78410

SOAP Client PHP:

http://pastebin.com/f707798bb

WSDL:

http://pastebin.com/fcd761de

Expected result:
----------------
The expected result is that when you call TestFunctionB you would get a return value of "TestFunctionB: $param".

Actual result:
--------------
The actual result of calling TestFunctionB is that soap is calling TestFunctionA and returning the value of "TestFunctionA: $param".

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-13 23:07 UTC] felipe@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-03-19 10:44 UTC] saiman at thefreeart dot com
The bug still exist. I'm using PHP Version 5.2.6-2ubuntu4.1 on Ubuntu with Apache web server.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 17:01:34 2024 UTC