-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework how we declare ZSTD min/max constants. #2490
Conversation
afa683a
to
7e302f8
Compare
Let gen_stub.php define the constants for us, including deriving their actual values from C defines. As a side-effect we have to drop support for PHP < 7.2 as it does not have interned strings.
Refs another issue that this PR fixes: 2a6dee5#r141929441 (a comment I posted in a commit, but such comments usually lack visibility). |
For now, in config.m4 we have
from ZSTD changelog
From zstd.h
P.S. : this function is
So this mean the minimal supported version should be raised to 1.4.0 (Apr 17, 2019) |
Additional note: In version 5.x From documentation:
So negative value (returned by |
I'll see if i can |
Should work now. For zstd < 1.4.0 we now just use |
@michael-grunder you only need to protect |
1f6d71e
to
2fdedc8
Compare
These values are actually runtime in nature and can be retrieved with
ZSTD_minCLevel()
andZSTD_maxCLevel()
respectively.Fixes #2487