Skip to content

Commit

Permalink
Merge pull request #73 from TysonAndre/fix-inaccessible-global-const
Browse files Browse the repository at this point in the history
Stop creating inaccessible global constants "0" and "1"
  • Loading branch information
mgdm committed Jul 15, 2017
2 parents e490f51 + a012b84 commit 35d77cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,9 @@ PHP_MINIT_FUNCTION(mosquitto)
REGISTER_MOSQUITTO_LONG_CONST("LOG_WARNING", MOSQ_LOG_WARNING);
REGISTER_MOSQUITTO_LONG_CONST("LOG_ERR", MOSQ_LOG_ERR);
REGISTER_MOSQUITTO_LONG_CONST("LOG_DEBUG", MOSQ_LOG_DEBUG);
REGISTER_MOSQUITTO_LONG_CONST("SSL_VERIFY_NONE", 0);
REGISTER_MOSQUITTO_LONG_CONST("SSL_VERIFY_PEER", 1);

zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_NONE", sizeof("SSL_VERIFY_NONE")-1, 0 TSRMLS_CC);
zend_declare_class_constant_long(mosquitto_ce_client, "SSL_VERIFY_PEER", sizeof("SSL_VERIFY_PEER")-1, 1 TSRMLS_CC);

mosquitto_lib_init();

Expand Down

0 comments on commit 35d77cd

Please sign in to comment.