|
1 | 1 | /* This is a generated file, edit the .stub.php file instead.
|
2 |
| - * Stub hash: 21f3434814d9fa077a9a81c8ba114c3faf079e85 */ |
| 2 | + * Stub hash: 04fe88bbcc4d3dc3be06385e8931dfb080442f23 */ |
3 | 3 |
|
4 | 4 | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
|
5 | 5 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")
|
@@ -1866,13 +1866,21 @@ static zend_class_entry *register_class_Redis(void)
|
1866 | 1866 | zend_declare_class_constant_ex(class_entry, const_COMPRESSION_ZSTD_DEFAULT_name, &const_COMPRESSION_ZSTD_DEFAULT_value, ZEND_ACC_PUBLIC, NULL);
|
1867 | 1867 | zend_string_release(const_COMPRESSION_ZSTD_DEFAULT_name);
|
1868 | 1868 | #endif
|
1869 |
| -#if defined(HAVE_REDIS_ZSTD) && defined(ZSTD_CLEVEL_MAX) |
| 1869 | +#if defined(HAVE_REDIS_ZSTD) && ZSTD_VERSION_NUMBER >= 10400 |
1870 | 1870 |
|
1871 |
| - zval const_COMPRESSION_ZSTD_MAX_value; |
1872 |
| - ZVAL_LONG(&const_COMPRESSION_ZSTD_MAX_value, ZSTD_CLEVEL_MAX); |
1873 |
| - zend_string *const_COMPRESSION_ZSTD_MAX_name = zend_string_init_interned("COMPRESSION_ZSTD_MAX", sizeof("COMPRESSION_ZSTD_MAX") - 1, 1); |
1874 |
| - zend_declare_class_constant_ex(class_entry, const_COMPRESSION_ZSTD_MAX_name, &const_COMPRESSION_ZSTD_MAX_value, ZEND_ACC_PUBLIC, NULL); |
1875 |
| - zend_string_release(const_COMPRESSION_ZSTD_MAX_name); |
| 1871 | + zval const_COMPRESSION_ZSTD_MIN_value; |
| 1872 | + ZVAL_LONG(&const_COMPRESSION_ZSTD_MIN_value, ZSTD_minCLevel()); |
| 1873 | + zend_string *const_COMPRESSION_ZSTD_MIN_name = zend_string_init_interned("COMPRESSION_ZSTD_MIN", sizeof("COMPRESSION_ZSTD_MIN") - 1, 1); |
| 1874 | + zend_declare_class_constant_ex(class_entry, const_COMPRESSION_ZSTD_MIN_name, &const_COMPRESSION_ZSTD_MIN_value, ZEND_ACC_PUBLIC, NULL); |
| 1875 | + zend_string_release(const_COMPRESSION_ZSTD_MIN_name); |
| 1876 | +#endif |
| 1877 | +#if defined(HAVE_REDIS_ZSTD) && !(ZSTD_VERSION_NUMBER >= 10400) |
| 1878 | + |
| 1879 | + zval const_COMPRESSION_ZSTD_MIN_value; |
| 1880 | + ZVAL_LONG(&const_COMPRESSION_ZSTD_MIN_value, 1); |
| 1881 | + zend_string *const_COMPRESSION_ZSTD_MIN_name = zend_string_init_interned("COMPRESSION_ZSTD_MIN", sizeof("COMPRESSION_ZSTD_MIN") - 1, 1); |
| 1882 | + zend_declare_class_constant_ex(class_entry, const_COMPRESSION_ZSTD_MIN_name, &const_COMPRESSION_ZSTD_MIN_value, ZEND_ACC_PUBLIC, NULL); |
| 1883 | + zend_string_release(const_COMPRESSION_ZSTD_MIN_name); |
1876 | 1884 | #endif
|
1877 | 1885 | #if defined(HAVE_REDIS_ZSTD)
|
1878 | 1886 |
|
|
0 commit comments