{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/715","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/715/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/715/events","html_url":"https://github.com/phalcon/zephir/issues/715","id":54044304,"number":715,"title":"Cache method/function in PHP 5.6","user":{"login":"mruz","id":2629882,"avatar_url":"https://avatars.githubusercontent.com/u/2629882?v=3","gravatar_id":"","url":"https://api.github.com/users/mruz","html_url":"https://github.com/mruz","followers_url":"https://api.github.com/users/mruz/followers","following_url":"https://api.github.com/users/mruz/following{/other_user}","gists_url":"https://api.github.com/users/mruz/gists{/gist_id}","starred_url":"https://api.github.com/users/mruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruz/subscriptions","organizations_url":"https://api.github.com/users/mruz/orgs","repos_url":"https://api.github.com/users/mruz/repos","events_url":"https://api.github.com/users/mruz/events{/privacy}","received_events_url":"https://api.github.com/users/mruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-12T11:39:30Z","updated_at":"2015-01-29T10:44:57Z","closed_at":null,"body":"After https://github.com/phalcon/zephir/commit/e1a78ce707b408d1ce80740890478aef56a764ad I'm getting an Segmentation fault, eg. on the [ice/framework](https://github.com/ice/framework) and [ice/website](https://github.com/ice/website) app. \r\n\r\n@ovr after clone the framework please run `composer update`"},"comment":{"url":"https://api.github.com/repos/phalcon/zephir/issues/comments/72004727","html_url":"https://github.com/phalcon/zephir/issues/715#issuecomment-72004727","issue_url":"https://api.github.com/repos/phalcon/zephir/issues/715","id":72004727,"user":{"login":"steffengy","id":1194855,"avatar_url":"https://avatars.githubusercontent.com/u/1194855?v=3","gravatar_id":"","url":"https://api.github.com/users/steffengy","html_url":"https://github.com/steffengy","followers_url":"https://api.github.com/users/steffengy/followers","following_url":"https://api.github.com/users/steffengy/following{/other_user}","gists_url":"https://api.github.com/users/steffengy/gists{/gist_id}","starred_url":"https://api.github.com/users/steffengy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steffengy/subscriptions","organizations_url":"https://api.github.com/users/steffengy/orgs","repos_url":"https://api.github.com/users/steffengy/repos","events_url":"https://api.github.com/users/steffengy/events{/privacy}","received_events_url":"https://api.github.com/users/steffengy/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T10:44:57Z","updated_at":"2015-01-29T10:44:57Z","body":"You are calling a deprectated function, which triggers a null pointer derefence in zend_execute_api.c (strlen), which is probably because zephir is not populating all needed structs for printing that deprecated message, resulting in the dereference.\r\n\r\n```\r\n#0  strlen () at ../sysdeps/x86_64/strlen.S:106\r\n#1  0x00000000006edc54 in xbuf_format_converter (xbuf=xbuf@entry=0x7fffffffbc00, fmt=0xc7197e \"s() is deprecated\",\r\n    ap=0x7fffffffbd78) at /media/rdata/projects/XXX/php-5.6.2/main/spprintf.c:576\r\n#2  0x00000000006eea34 in vspprintf (pbuf=0x7ffff5288f58, max_len=0, format=<optimized out>, ap=<optimized out>)\r\n    at /media/rdata/projects/XXX/php-5.6.2/main/spprintf.c:799\r\n#3  0x000000000074bb13 in zend_error (type=type@entry=8192,\r\n    format=format@entry=0xc71970 \"Function %s%s%s() is deprecated\")\r\n    at /media/rdata/projects/XXX/php-5.6.2/Zend/zend.c:1167\r\n#4  0x000000000073c2ea in zend_call_function (fci=0x7fffffffc080, fci_cache=0x7fffffffc050)\r\n    at /media/rdata/projects/XXX/php-5.6.2/Zend/zend_execute_API.c:714\r\n#5  0x00007ffff52ca7ba in zephir_call_user_function ()\r\n   from /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ice.so\r\n#6  0x00007ffff52cb076 in zephir_call_class_method_aparams ()\r\n   from /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ice.so\r\n#7  0x00007ffff5312d5b in zim_Ice_Flash___construct ()\r\n   from /usr/local/lib/php/extensions/no-debug-non-zts-20131226/ice.so\r\n#8  0x00000000007ef21e in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)\r\n    at /media/rdata/projects/XXX/php-5.6.2/Zend/zend_vm_execute.h:558\r\n#9  0x0000000000785dd8 in execute_ex (execute_data=0x7ffff7f9c720)\r\n    at /media/rdata/projects/XXX/php-5.6.2/Zend/zend_vm_execute.h:363\r\n#10 0x000000000074cfe0 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x7fffffffd518,\r\n    file_count=file_count@entry=1) at /media/rdata/projects/XXX/php-5.6.2/Zend/zend.c:1344\r\n#11 0x00000000007f6c02 in php_cli_server_dispatch_router (client=<optimized out>, server=<optimized out>)\r\n```\r\n\r\nI would generally advise you to post small codebases, which can trigger a bug, insteadof specifying such a big project, because finding such a bug in a large code base, is time consuming.\r\n\r\n"}}