BUG 8973 "Replace all instances of json_encode() and json_decode()..." SOLVED

- Problems with functions json_encode and json_decode in PHP 5.2
- Replace json_encode and json_decode with G::json_encode and G::json_decode
This commit is contained in:
Victor Saisa Lopez
2012-04-23 12:34:16 -04:00
parent b623e8577b
commit 9df68b5307
8 changed files with 22 additions and 22 deletions

View File

@@ -311,7 +311,7 @@ function getDWSDocumentVersions($sharepointServer, $auth, $newFileName, $dwsname
*/
$xml = $result->GetVersionsResult->any;// in Result we get string in Xml format
$xmlNew = simplexml_load_string($xml);// used to parse string to xml
$xmlArray = @json_decode(@json_encode($xmlNew),1);// used to convert Objects to array
$xmlArray = @G::json_decode(@G::json_encode($xmlNew),1);// used to convert Objects to array
$resultCount = count($xmlArray['result']);
for($i=0;$i<$resultCount;$i++)
{