{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/1380","repository_url":"https://api.github.com/repos/unbit/uwsgi","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/1380/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/1380/events","html_url":"https://github.com/unbit/uwsgi/issues/1380","id":182447021,"number":1380,"title":"uwsgi-2.0.14 build error with php plugin enabled","user":{"login":"iron-udjin","id":1779285,"avatar_url":"https://avatars.githubusercontent.com/u/1779285?v=3","gravatar_id":"","url":"https://api.github.com/users/iron-udjin","html_url":"https://github.com/iron-udjin","followers_url":"https://api.github.com/users/iron-udjin/followers","following_url":"https://api.github.com/users/iron-udjin/following{/other_user}","gists_url":"https://api.github.com/users/iron-udjin/gists{/gist_id}","starred_url":"https://api.github.com/users/iron-udjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron-udjin/subscriptions","organizations_url":"https://api.github.com/users/iron-udjin/orgs","repos_url":"https://api.github.com/users/iron-udjin/repos","events_url":"https://api.github.com/users/iron-udjin/events{/privacy}","received_events_url":"https://api.github.com/users/iron-udjin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-12T06:39:19Z","updated_at":"2016-10-12T10:47:02Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to build uwsgi with php plugin enabled under FreeBSD 11 use clang-3.8:\r\n```\r\nplugins/php/php_plugin.c:224:69: error: too few arguments to function call, expected 6, have 5\r\n                        zend_register_string_constant(name, name_len, strval, CONST_CS, 0);\r\n                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    ^\r\n/usr/local/include/php/Zend/zend_constants.h:75:1: note: 'zend_register_string_constant' declared here\r\nZEND_API void zend_register_string_constant(const char *name, uint name_len, char *strval, int flags, int module_number TSRMLS_DC);\r\n^\r\n/usr/local/include/php/main/php_config.h:6:19: note: expanded from macro 'ZEND_API'\r\n# define ZEND_API __attribute__ ((visibility(\"default\")))\r\n                  ^\r\n1 error generated.\r\n*** Error code 1\r\n```\r\n\r\nThe same error with php-5.5 and php-5.6.\r\n\r\nP.S: uwsgi-2.0.13 compilles fine."},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/253180540","html_url":"https://github.com/unbit/uwsgi/issues/1380#issuecomment-253180540","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/1380","id":253180540,"user":{"login":"iron-udjin","id":1779285,"avatar_url":"https://avatars.githubusercontent.com/u/1779285?v=3","gravatar_id":"","url":"https://api.github.com/users/iron-udjin","html_url":"https://github.com/iron-udjin","followers_url":"https://api.github.com/users/iron-udjin/followers","following_url":"https://api.github.com/users/iron-udjin/following{/other_user}","gists_url":"https://api.github.com/users/iron-udjin/gists{/gist_id}","starred_url":"https://api.github.com/users/iron-udjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iron-udjin/subscriptions","organizations_url":"https://api.github.com/users/iron-udjin/orgs","repos_url":"https://api.github.com/users/iron-udjin/repos","events_url":"https://api.github.com/users/iron-udjin/events{/privacy}","received_events_url":"https://api.github.com/users/iron-udjin/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T10:47:02Z","updated_at":"2016-10-12T10:47:02Z","body":"Guys, thank you for fast respond!\r\n\r\n@gdamjan here is result:\r\n```\r\nplugins/php/php_plugin.c:224:68: error: expected expression\r\n                        zend_register_string_constant(name, name_len, strval, CONST_CS, TSRMLS_DC);\r\n                                                                                        ^\r\n/usr/local/include/php/TSRM/TSRM.h:166:19: note: expanded from macro 'TSRMLS_DC'\r\n#define TSRMLS_DC       , TSRMLS_D\r\n                        ^\r\nplugins/php/php_plugin.c:224:68: error: expected expression\r\n/usr/local/include/php/TSRM/TSRM.h:166:21: note: expanded from macro 'TSRMLS_DC'\r\n#define TSRMLS_DC       , TSRMLS_D\r\n                          ^\r\n/usr/local/include/php/TSRM/TSRM.h:165:18: note: expanded from macro 'TSRMLS_D'\r\n#define TSRMLS_D        void ***tsrm_ls\r\n                        ^\r\n2 errors generated.\r\n*** Error code 1\r\n```"}}
{"actor":{"display_login":"iron-udjin"}}