-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,8 +214,7 @@ public function encode($phpVal, $options = array()) | |
// catch "user function", "unknown type" | ||
default: | ||
// giancarlo pinerolo <[email protected]> | ||
// it has to return | ||
// an empty object in case, not a boolean. | ||
// it has to return an empty object in case, not a boolean. | ||
$xmlrpcVal = new Value(); | ||
break; | ||
} | ||
|
@@ -227,6 +226,8 @@ public function encode($phpVal, $options = array()) | |
* Convert the xml representation of a method response, method request or single | ||
* xmlrpc value into the appropriate object (a.k.a. deserialize). | ||
* | ||
* Q: is this a good name for this method? It does something quite different from 'decode' after all (returning objects vs returns plain php values)... | ||
* | ||
* @param string $xmlVal | ||
* @param array $options | ||
* | ||
|
@@ -291,7 +292,7 @@ public function decodeXml($xmlVal, $options = array()) | |
} | ||
switch ($xmlRpcParser->_xh['rt']) { | ||
case 'methodresponse': | ||
$v = &$xmlRpcParser->_xh['value']; | ||
$v = $xmlRpcParser->_xh['value']; | ||
if ($xmlRpcParser->_xh['isf'] == 1) { | ||
/** @var Value $vc */ | ||
$vc = $v['faultCode']; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters