{"issue":{"state":"open","created_at":"2011-12-07T23:13:27Z","updated_at":"2011-12-09T11:28:45Z","comments":1,"user":{"gravatar_id":"ef85fa3834840f7f82e335ea3d913831","id":1248488,"url":"https://api.github.com/users/ponytrouble","avatar_url":"https://secure.gravatar.com/avatar/ef85fa3834840f7f82e335ea3d913831?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ponytrouble"},"body":"\r\nI'm having problems running a long series of Facebook api calls, against different Facebook objects in the same code.  If there's an error with one of the calls a exception is thrown but, this causes the code to crash. The only output is \"Segmentation fault.\" \r\n\r\nWhat would cause that in the error object? The \"recursion\" on some errors looks unusual to me. Is there a reccomendation for fixing it? \r\n\r\nMy code: ```\r\n            // save result \r\n            if(is_object($_result) && $_result instanceof FacebookApiException) { \r\nvar_dump(method_exists($_result, 'getMessage'));\r\nvar_dump($_result->getMessage());\r\nprint \"\\n\\n\". print_r($_result, 1);\r\n//                $_result = 'ERROR';\r\n//                $_message = 'ERROR'. (method_exists($_result, 'getMessage') ? $_result->getMessage() : '') .' FOR: '. $data['query'];\r\n        }\r\n        $this->saveResults($data['application'], $_result); \r\n. . . . ```\r\n\r\n\r\nError objects: ```\r\n    {}\r\n    bool(true)\r\n    string(47) \"Invalid metric name: domain_active_users_locale\"\r\n    FacebookApiException Object\r\n    (\r\n    [result:protected] => Array\r\n     *RECURSION*\r\n    [message:protected] => Invalid metric name: domain_active_users_locale\r\n    [string:private] =>\r\n    [code:protected] => 604\r\n    [file:protected] => /var/www/vhosts/springcg.com/public_html/library/facebook-php-sdk-dafef11/src/base_facebook.php\r\n    [line:protected] => 1039\r\n    [trace:private] => Array\r\n     *RECURSION*\r\n    )\r\n``` \r\n```\r\n    bool(true)\r\n    string(54) \"(#604) Invalid metric name: domain_active_users_locale\"\r\n    FacebookApiException Object\r\n    (\r\n    [result:protected] => Array\r\n        (\r\n            [error] => Array\r\n                (\r\n                    [message] => (#604) Invalid metric name: domain_active_users_locale\r\n                    [type] => OAuthException\r\n                )\r\n\r\n        )\r\n\r\n    [message:protected] => (#604) Invalid metric name: domain_active_users_locale\r\n    [string:private] =>\r\n    [code:protected] => 0\r\n    [file:protected] => /var/www/vhosts/springcg.com/public_html/library/facebook-php-sdk-dafef11/src/base_facebook.php\r\n    [line:protected] => 1039\r\n    [trace:private] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [file] => /var/www/vhosts/springcg.com/public_html/library/facebook-php-sdk-dafef11/src/base_facebook.php\r\n                    [line] => 744\r\n                    [function] => throwAPIException\r\n                    [class] => BaseFacebook\r\n                    [type] => ->\r\n                    [args] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                    [error] => Array\r\n                                        (\r\n                                            [message] => (#604) Invalid metric name: domain_active_users_locale\r\n                                            [type] => OAuthException\r\n```\r\n\r\n\r\n","assignee":null,"id":2481587,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":508,"title":"FacebookApiException php segmentation fault ","closed_at":null,"html_url":"https://github.com/facebook/php-sdk/issues/508","url":"https://api.github.com/repos/facebook/php-sdk/issues/508","milestone":null},"action":"created","comment":{"created_at":"2011-12-09T11:28:45Z","updated_at":"2011-12-09T11:28:45Z","user":{"gravatar_id":"93420a0096fbe490a0fa1087453904a6","id":357873,"url":"https://api.github.com/users/LupusMichaelis","avatar_url":"https://secure.gravatar.com/avatar/93420a0096fbe490a0fa1087453904a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"LupusMichaelis"},"body":"If it crashes, that means PHP crashes. So you should've look at PHP version, modules version (like xdebug), and eventually build a debug version of PHP dans use gdb to trace the problem.","id":3077949,"url":"https://api.github.com/repos/facebook/php-sdk/issues/comments/3077949"}}