{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/332","repository_url":"https://api.github.com/repos/Microsoft/msphpsql","labels_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/332/comments","events_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/332/events","html_url":"https://github.com/Microsoft/msphpsql/issues/332","id":215418632,"number":332,"title":"ISO C++ forbids converting a string constant to ‘char*’","user":{"login":"shakaw","id":8233785,"avatar_url":"https://avatars1.githubusercontent.com/u/8233785?v=3","gravatar_id":"","url":"https://api.github.com/users/shakaw","html_url":"https://github.com/shakaw","followers_url":"https://api.github.com/users/shakaw/followers","following_url":"https://api.github.com/users/shakaw/following{/other_user}","gists_url":"https://api.github.com/users/shakaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shakaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakaw/subscriptions","organizations_url":"https://api.github.com/users/shakaw/orgs","repos_url":"https://api.github.com/users/shakaw/repos","events_url":"https://api.github.com/users/shakaw/events{/privacy}","received_events_url":"https://api.github.com/users/shakaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-20T13:24:12Z","updated_at":"2017-03-21T06:51:18Z","closed_at":null,"body":"/var/tmp/sqlsrv/conn.cpp:152:75: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n char* ss_sqlsrv_conn::resource_name = static_cast<char *>(\"ss_sqlsrv_conn\");\r\n\r\n/var/tmp/sqlsrv/init.cpp: In function ‘int zm_activate_sqlsrv(int, int)’:\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:142:37: note: in expansion of macro ‘INI_INT’\r\n #define INI_BOOL(name) ((zend_bool) INI_INT(name))\r\n                                     ^\r\n/var/tmp/sqlsrv/init.cpp:639:45: note: in expansion of macro ‘INI_BOOL’\r\n     SQLSRV_G( warnings_return_as_errors ) = INI_BOOL( INI_PREFIX INI_WARNINGS_RETURN_AS_ERRORS);\r\n                                             ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/var/tmp/sqlsrv/init.cpp:640:32: note: in expansion of macro ‘INI_INT’\r\n     SQLSRV_G( log_severity ) = INI_INT( INI_PREFIX INI_LOG_SEVERITY);\r\n                                ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/var/tmp/sqlsrv/init.cpp:641:34: note: in expansion of macro ‘INI_INT’\r\n     SQLSRV_G( log_subsystems ) = INI_INT( INI_PREFIX INI_LOG_SUBSYSTEMS);\r\n                                  ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/comments/287991655","html_url":"https://github.com/Microsoft/msphpsql/issues/332#issuecomment-287991655","issue_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/332","id":287991655,"user":{"login":"shakaw","id":8233785,"avatar_url":"https://avatars1.githubusercontent.com/u/8233785?v=3","gravatar_id":"","url":"https://api.github.com/users/shakaw","html_url":"https://github.com/shakaw","followers_url":"https://api.github.com/users/shakaw/followers","following_url":"https://api.github.com/users/shakaw/following{/other_user}","gists_url":"https://api.github.com/users/shakaw/gists{/gist_id}","starred_url":"https://api.github.com/users/shakaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakaw/subscriptions","organizations_url":"https://api.github.com/users/shakaw/orgs","repos_url":"https://api.github.com/users/shakaw/repos","events_url":"https://api.github.com/users/shakaw/events{/privacy}","received_events_url":"https://api.github.com/users/shakaw/received_events","type":"User","site_admin":false},"created_at":"2017-03-21T06:51:18Z","updated_at":"2017-03-21T06:51:18Z","body":"I'm sorry. It's for driver 4.0.8. New version compiling succesful, but have some warnings:\r\n\r\nIn file included from /opt/remi/php71/root/usr/include/php/main/php_ini.h:24:0,\r\n                 from /opt/remi/php71/root/usr/include/php/main/fopen_wrappers.h:26,\r\n                 from /opt/remi/php71/root/usr/include/php/main/php.h:407,\r\n                 from /var/tmp/sqlsrv/shared/core_sqlsrv.h:34,\r\n                 from /var/tmp/sqlsrv/php_sqlsrv.h:25,\r\n                 from /var/tmp/sqlsrv/init.cpp:19:\r\n/var/tmp/sqlsrv/init.cpp: In function ‘int zm_activate_sqlsrv(int, int)’:\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:142:37: note: in expansion of macro ‘INI_INT’\r\n #define INI_BOOL(name) ((zend_bool) INI_INT(name))\r\n                                     ^\r\n/var/tmp/sqlsrv/init.cpp:639:45: note: in expansion of macro ‘INI_BOOL’\r\n     SQLSRV_G( warnings_return_as_errors ) = INI_BOOL( INI_PREFIX INI_WARNINGS_RETURN_AS_ERRORS );\r\n                                             ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/var/tmp/sqlsrv/init.cpp:640:32: note: in expansion of macro ‘INI_INT’\r\n     SQLSRV_G( log_severity ) = INI_INT( INI_PREFIX INI_LOG_SEVERITY );\r\n                                ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/var/tmp/sqlsrv/init.cpp:641:34: note: in expansion of macro ‘INI_INT’\r\n     SQLSRV_G( log_subsystems ) = INI_INT( INI_PREFIX INI_LOG_SUBSYSTEMS );\r\n                                  ^\r\n/opt/remi/php71/root/usr/include/php/Zend/zend_ini.h:139:62: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]\r\n #define INI_INT(name) zend_ini_long((name), sizeof(name)-1, 0)\r\n                                                              ^\r\n/var/tmp/sqlsrv/init.cpp:642:40: note: in expansion of macro ‘INI_INT’\r\n     SQLSRV_G( buffered_query_limit ) = INI_INT( INI_PREFIX INI_BUFFERED_QUERY_LIMIT );\r\n"}}
{"actor":{"display_login":"shakaw"}}