{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/128","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/128/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/128/events","html_url":"https://github.com/phalcon/zephir/issues/128","id":26522131,"number":128,"title":"[Optimizer] Using a 3rd party library","user":{"login":"treffynnon","id":65215,"avatar_url":"https://avatars.githubusercontent.com/u/65215?v=3","gravatar_id":"","url":"https://api.github.com/users/treffynnon","html_url":"https://github.com/treffynnon","followers_url":"https://api.github.com/users/treffynnon/followers","following_url":"https://api.github.com/users/treffynnon/following{/other_user}","gists_url":"https://api.github.com/users/treffynnon/gists{/gist_id}","starred_url":"https://api.github.com/users/treffynnon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treffynnon/subscriptions","organizations_url":"https://api.github.com/users/treffynnon/orgs","repos_url":"https://api.github.com/users/treffynnon/repos","events_url":"https://api.github.com/users/treffynnon/events{/privacy}","received_events_url":"https://api.github.com/users/treffynnon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-01-29T14:11:03Z","updated_at":"2015-01-06T17:32:29Z","closed_at":"2014-02-03T13:39:28Z","body":"I am trying to use an optimizer to pull in a third party piece of code just as described in [the comments on pull request #21](https://github.com/phalcon/zephir/pull/21#issuecomment-26178522). Just to confirm I am not using the CBLOCK syntax that this PR was in relation to, but trying to follow the optimizer example given.\r\n\r\nWhenever I try to compile I am getting the following error back:\r\n\r\n```bash\r\nWarning: Function \"fibonacci\" does not exist at compile time in /path/to/zephir-extension/extname/extname/test.zep on 7 [nonexistent-function]\r\n\r\n\t        fibonacci(arg);\r\n\t-----------------------^\r\n```\r\n\r\nI have used the same directory structure as the aforementioned ticket and replicated the code. Is there something missing? Is there something more I need to do to get Zephir to look at the header file?"},"comment":{"url":"https://api.github.com/repos/phalcon/zephir/issues/comments/68899561","html_url":"https://github.com/phalcon/zephir/issues/128#issuecomment-68899561","issue_url":"https://api.github.com/repos/phalcon/zephir/issues/128","id":68899561,"user":{"login":"ramsey","id":42941,"avatar_url":"https://avatars.githubusercontent.com/u/42941?v=3","gravatar_id":"","url":"https://api.github.com/users/ramsey","html_url":"https://github.com/ramsey","followers_url":"https://api.github.com/users/ramsey/followers","following_url":"https://api.github.com/users/ramsey/following{/other_user}","gists_url":"https://api.github.com/users/ramsey/gists{/gist_id}","starred_url":"https://api.github.com/users/ramsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramsey/subscriptions","organizations_url":"https://api.github.com/users/ramsey/orgs","repos_url":"https://api.github.com/users/ramsey/repos","events_url":"https://api.github.com/users/ramsey/events{/privacy}","received_events_url":"https://api.github.com/users/ramsey/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T17:32:29Z","updated_at":"2015-01-06T17:32:29Z","body":"Thanks, @phalcon. After looking through the existing optimizers, I was able to get things working by using the codePrinter with code that passes the zval into a custom C function and uses `ZVAL_STRING()` to set the string on the zval. I was going about it wrong, thinking that the compiled expression would turn into some structure like I mentioned above."}}