Closed GoogleCodeExporter closed 8 years ago
Hello,
I have found a solution to this problem.
-First of all, the problem is due to the fact that only PHP 5.3+ allows this
way of using array_walk:
array_walk($myArray, function(&$value, $key) {})
-To remedy this problem, define a new function as follows (before the
declaration of the checkResponse function on line 256)
private function is_response_int($value, $key) {
if(!is_int($value)) {
throw new LinkedInException('LinkedIn->checkResponse(): $http_code_required must be an integer or an array of integer values');
}
}
-And on the line where array_walk is used, replace the whole call to it by:
array_walk($http_code_required, 'is_response_int');
Hope this helps, and if you need any clarifications, feel free to contact me!
Cheers,
Georges
Original comment by gc.sabb...@gmail.com
on 9 Dec 2011 at 12:45
This is a known issue
http://code.google.com/p/simple-linkedinphp/issues/detail?id=11
Original comment by p...@fiftymission.net
on 9 Dec 2011 at 9:08
Hi
Thanks for the message, Yes it resolves this issue but when i tried to send the status update via api it said
profile data could not be retrieved.
Is this coz of the changes that we made earlier in your post ? Or what else the reason could be.
Original comment by abdulbas...@gmail.com
on 5 Jun 2012 at 1:35
Original issue reported on code.google.com by
micha...@gmail.com
on 8 Dec 2011 at 3:06