php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37069 SoapClient->__getFunctions() returns invalid result
Submitted: 2006-04-13 11:11 UTC Modified: 2006-04-21 01:00 UTC
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:6 of 7 (85.7%)
Same Version:1 (16.7%)
Same OS:1 (16.7%)
From: pmattivi at programator dot net Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.1.2 OS: Fedora Core rel 3 (Heidelberg)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pmattivi at programator dot net
New email:
PHP Version: OS:

 

 [2006-04-13 11:11 UTC] pmattivi at programator dot net
Description:
------------
I have a webservice with following functions:
functionx(String, String, String, String);
functionx(String, String, String);

when I create SoapClient and call __getFunctions() I get twice the same method:
functionx(String, String, String, String);

then I'm unable to call second method with 3 params. The function with 4 params is allways called when I do a call with 3 params.

Reproduce code:
---------------
$client = new SoapClient("https://www.dummyurl.com/service?wsdl");
$functions = $client->__getFunctions();
print_r($functions);

Expected result:
----------------
functionx(String, String, String, String);
functionx(String, String, String);

Actual result:
--------------
functionx(String, String, String, String);
functionx(String, String, String, String);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-13 11:19 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2006-04-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-04-03 09:19 UTC] etienne dot dysli at unil dot ch
Reproduced with the latest snapshot (5.2-200904030630). The SOAP code cannot distinguish two operations with the same name but different signatures.

Expected result:
----------------
print_r($client->__getFunctions());
Array
(
    [0] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt)
    [1] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $sortFields, string $resultPageXslt)
)

Actual result:
--------------
print_r($client->__getFunctions());
Array
(
    [0] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt)
    [1] => string gfindObjects(string $query, int $hitPageStart, int $hitPageSize, int $snippetsMax, int $fieldMaxLength, string $indexName, string $resultPageXslt)
)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC