diff options
author | Remi Collet <remi@remirepo.net> | 2018-01-26 11:35:29 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-01-26 11:35:29 +0100 |
commit | 3b842cb8e777be978fb72fbfac7a2e5f2855d19e (patch) | |
tree | efe880afde094e6a99b7009aa86d421c4b36255a /rpminfo.c | |
parent | c4521c64e148640fa9ad840e9ea3cb45293204dd (diff) |
add RPMVERSION constant
Diffstat (limited to 'rpminfo.c')
-rw-r--r-- | rpminfo.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -163,7 +163,16 @@ PHP_FUNCTION(rpmvercmp) } /* }}} */ -/* Remove if there's nothing to do at request start */ +/* {{{ PHP_MINIT_FUNCTION + */ +PHP_MINIT_FUNCTION(rpminfo) +{ + REGISTER_STRING_CONSTANT("RPMVERSION", (char *)RPMVERSION, CONST_CS | CONST_PERSISTENT); + + return SUCCESS; +} +/* }}} */ + /* {{{ PHP_RINIT_FUNCTION */ PHP_RINIT_FUNCTION(rpminfo) @@ -232,7 +241,7 @@ zend_module_entry rpminfo_module_entry = { NULL, "rpminfo", rpminfo_functions, - NULL, + PHP_MINIT(rpminfo), NULL, PHP_RINIT(rpminfo), NULL, |