message: Add version and debug constants.
diff: @@ -623,6 +623,18 @@ PHP_MINIT_FUNCTION(swoole)
  ZEND_INIT_MODULE_GLOBALS(swoole, php_swoole_init_globals, NULL);
  REGISTER_INI_ENTRIES();
  + REGISTER_STRING_CONSTANT("SWOOLE_VERSION", SWOOLE_VERSION, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT("SWOOLE_VERSION_ID", SWOOLE_VERSION_ID, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT("SWOOLE_MAJOR_VERSION", SWOOLE_MAJOR_VERSION, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT("SWOOLE_MINOR_VERSION", SWOOLE_MINOR_VERSION, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT("SWOOLE_RELEASE_VERSION", SWOOLE_RELEASE_VERSION, CONST_CS | CONST_PERSISTENT);
  + REGISTER_STRING_CONSTANT("SWOOLE_EXTRA_VERSION", SWOOLE_EXTRA_VERSION, CONST_CS | CONST_PERSISTENT);
  +#ifndef SW_DEBUG
  + REGISTER_BOOL_CONSTANT("SWOOLE_DEBUG", 0, CONST_CS | CONST_PERSISTENT);
  +#else
  + REGISTER_BOOL_CONSTANT("SWOOLE_DEBUG", 1, CONST_CS | CONST_PERSISTENT);
  +#endif
  +
  /**
  * mode type
  */
  @@ -699,8 +711,6 @@ PHP_MINIT_FUNCTION(swoole)
  REGISTER_LONG_CONSTANT("SWOOLE_EVENT_READ", SW_EVENT_READ, CONST_CS | CONST_PERSISTENT);
  REGISTER_LONG_CONSTANT("SWOOLE_EVENT_WRITE", SW_EVENT_WRITE, CONST_CS | CONST_PERSISTENT);
  - REGISTER_STRINGL_CONSTANT("SWOOLE_VERSION", SWOOLE_VERSION, sizeof(SWOOLE_VERSION) - 1, CONST_CS | CONST_PERSISTENT);
  -
  /**
  * Register ERROR constants
  */
  