php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25212 soapfault mixed up parameters
Submitted: 2003-08-22 11:45 UTC Modified: 2010-12-29 14:05 UTC
From: novicky at aarongroup dot cz Assigned: jani (profile)
Status: Closed Package: SOAP related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2003-08-22 11:45 UTC] novicky at aarongroup dot cz
Description:
------------
The soap client object has swapped parameters "faultstring" and "faultcode" in an array returned by method __getFault(). Here is a patch that fixes the problem.

--- soap.c	14 Mar 2003 02:08:30 -0000	1.17
+++ soap.c	22 Aug 2003 16:39:29 -0000
@@ -1646,7 +1646,7 @@
 {
 	zval *fault;
 	MAKE_STD_ZVAL(fault);
-	set_soap_fault(fault, fault_string, fault_code, fault_actor, fault_detail TSRMLS_CC);
+	set_soap_fault(fault, fault_code, fault_string, fault_actor, fault_detail TSRMLS_CC);
 	add_property_zval(obj, "__soap_fault", fault);
 }
 



Patches

TWSfSopc (last revision 2024-06-26 22:30 UTC by testing at example dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-01 19:21 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed a long time ago.
 [2010-12-29 14:05 UTC] jani@php.net
-Summary: PECL::SOAP soapfault mixed up parameters +Summary: soapfault mixed up parameters -Package: PECL related +Package: SOAP related -Assigned To: +Assigned To: jani
 [2024-06-26 22:30 UTC] testing at example dot com
The following patch has been added/updated:

Patch Name: TWSfSopc
Revision:   1719441030
URL:        https://bugs.php.net/patch-display.php?bug=25212&patch=TWSfSopc&revision=1719441030
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC