{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/938","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/938/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/938/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/938/events","html_url":"https://github.com/phalcon/zephir/issues/938","id":73446858,"number":938,"title":"Call function \"Fatal error: Wrong number of parameters...\"","user":{"login":"KorsaR-ZN","id":579410,"avatar_url":"https://avatars.githubusercontent.com/u/579410?v=3","gravatar_id":"","url":"https://api.github.com/users/KorsaR-ZN","html_url":"https://github.com/KorsaR-ZN","followers_url":"https://api.github.com/users/KorsaR-ZN/followers","following_url":"https://api.github.com/users/KorsaR-ZN/following{/other_user}","gists_url":"https://api.github.com/users/KorsaR-ZN/gists{/gist_id}","starred_url":"https://api.github.com/users/KorsaR-ZN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorsaR-ZN/subscriptions","organizations_url":"https://api.github.com/users/KorsaR-ZN/orgs","repos_url":"https://api.github.com/users/KorsaR-ZN/repos","events_url":"https://api.github.com/users/KorsaR-ZN/events{/privacy}","received_events_url":"https://api.github.com/users/KorsaR-ZN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-05T22:10:38Z","updated_at":"2015-05-05T23:23:14Z","closed_at":null,"body":"How to solve it?\r\n\r\n# Zephir\r\n```\r\nClass Helper \r\n{\r\n   public static function test(string! sp, string! b, string! c)\r\n   {\r\n        if func_num_args() > 3 {\r\n          ....\r\n        }\r\n\r\n        return b . sp . c;\r\n    }\r\n}\r\n```\r\n\r\n**Outputs**\r\n```\r\nHelper::test(\".\", \"1\", \"2\"); // OK \r\nHelper::test(\".\", \"1\", \"2\", \" \", \"30\"); // FAIL\r\n```\r\n\r\n\r\n# PHP\r\n```\r\nClass Helper \r\n{\r\n   public static function test($sp, $b, $c)\r\n   {\r\n        if (func_num_args() > 3) {\r\n          ....\r\n        }\r\n\r\n        return $b . $sp . $c;\r\n    }\r\n}\r\n```\r\n\r\n**Outputs**\r\n```\r\nHelper::test(\".\", 1, 2); // OK \r\nHelper::test(\".\", 1, 2, \" \", 30); // OK \r\n```\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/13227372-call-function-wrong-number-of-parameters?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/phalcon/zephir/issues/comments/99259778","html_url":"https://github.com/phalcon/zephir/issues/938#issuecomment-99259778","issue_url":"https://api.github.com/repos/phalcon/zephir/issues/938","id":99259778,"user":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars.githubusercontent.com/u/1256298?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T23:23:14Z","updated_at":"2015-05-05T23:23:14Z","body":"So, if `Helper::test2(\"1\", \"2\", \"3\", \"4\");` passed as workaround just do not declare args."}}