Skip to content

Commit 73ffe6e

Browse files
committed
add: LZ4_VERSION_NUMBER and LZ4_VERSION_TEXT constants
1 parent 18a95df commit 73ffe6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lz4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ static PHP_MINIT_FUNCTION(lz4)
9898
REGISTER_LONG_CONSTANT("LZ4_CLEVEL_MIN", PHP_LZ4_CLEVEL_MIN, CONST_CS | CONST_PERSISTENT);
9999
REGISTER_LONG_CONSTANT("LZ4_CLEVEL_MAX", PHP_LZ4_CLEVEL_MAX, CONST_CS | CONST_PERSISTENT);
100100
REGISTER_LONG_CONSTANT("LZ4_VERSION", LZ4_versionNumber(), CONST_CS | CONST_PERSISTENT);
101+
REGISTER_LONG_CONSTANT("LZ4_VERSION_NUMBER", LZ4_versionNumber(), CONST_CS | CONST_PERSISTENT);
102+
REGISTER_STRING_CONSTANT("LZ4_VERSION_TEXT", (char *)LZ4_versionString(), CONST_CS | CONST_PERSISTENT);
101103

102104
#if PHP_MAJOR_VERSION >= 7 && defined(HAVE_APCU_SUPPORT)
103105
apc_register_serializer("lz4",

0 commit comments

Comments
 (0)