{"action":"closed","issue":{"url":"https://api.github.com/repos/kaltura/php-api-examples/issues/2","labels_url":"https://api.github.com/repos/kaltura/php-api-examples/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kaltura/php-api-examples/issues/2/comments","events_url":"https://api.github.com/repos/kaltura/php-api-examples/issues/2/events","html_url":"https://github.com/kaltura/php-api-examples/issues/2","id":41795307,"number":2,"title":"Serialization problem on PHP 5.5","user":{"login":"acheckley","id":8639818,"avatar_url":"https://avatars.githubusercontent.com/u/8639818?v=3","gravatar_id":"","url":"https://api.github.com/users/acheckley","html_url":"https://github.com/acheckley","followers_url":"https://api.github.com/users/acheckley/followers","following_url":"https://api.github.com/users/acheckley/following{/other_user}","gists_url":"https://api.github.com/users/acheckley/gists{/gist_id}","starred_url":"https://api.github.com/users/acheckley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acheckley/subscriptions","organizations_url":"https://api.github.com/users/acheckley/orgs","repos_url":"https://api.github.com/users/acheckley/repos","events_url":"https://api.github.com/users/acheckley/events{/privacy}","received_events_url":"https://api.github.com/users/acheckley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-03T09:04:24Z","updated_at":"2015-04-01T15:29:49Z","closed_at":"2015-04-01T15:29:49Z","body":"Hi Everyone,\r\n\r\nI have moved from PHP 5.3 to PHP 5.5. I've implemented Krishna's curl change to make file uploading system connect to the Kaltura server correctly.\r\n\r\nI'm using KalturaClientBase.php. \r\nhttps://github.com/loomerds/kaltura-moodle24/blob/master/local/kaltura/API/KalturaClientBase.php\r\nhttps://github.com/kaltura/server/blob/b596319bc4be0ff01ac83fe3c9f6b8bb8e84885b/generator/sources/php5/KalturaClientBase.php\r\n\r\nMy problem is that I can’t get Kaltura to unserialize the data. It always fails the if statement on line 271:\r\n\r\nif ($result === false && serialize(false) !== $postResult)\r\n{\r\nthrow new KalturaClientException(\"failed to unserialize server result\\n$postResult\", KalturaClientException::ERROR_UNSERIALIZE_FAILED);\r\n}\r\n\r\nDue to an improper unserialize on line 269.\r\n\r\n$result = @unserialize($postResult);\r\n\r\nThis works on earlier versions of PHP. I'm trying to find out why this would fail in PHP 5.5.\r\n\r\nSo far I've tried changing the return curl array to base64_encode and unserialize decode along with various format substitution like UTF8_en/decode and URLen/decode. I've also use Kaltura's exception handler to debug the $resultPost and $result data to check that I'm sending and receiving data. Ultimately, I keep ending up with an invalid object type.\r\n\r\nThanks,\r\n\r\nAndrew\r\n"}}