Repository navigation
Conversation
|
A test idea would be to add a PHPT that verifies |
This PR is not changing anything except fixing a compiler warning. But you are right - there is no phpt using POSIX_RLIMIT_INFINITY |
With a 64-bit rlim_t, RLIM_INFINITY does not fit into a 32-bit zend_long and the implicit conversion warns, which breaks --enable-werror builds. Register -1 in that case, which posix_setrlimit() maps back to RLIM_INFINITY. This is the value the truncation produced already, so the constant does not change on any platform. Also add a test, as POSIX_RLIMIT_INFINITY was not covered by any test.
6456aa7 to
37d94d3
Compare
|
Now, a small phpt covers |
With a 64-bit rlim_t, RLIM_INFINITY does not fit into a 32-bit zend_long and the implicit conversion warns, which breaks
--enable-werrorbuilds. Register -1 in that case, which posix_setrlimit() maps back to RLIM_INFINITY. This is the value the truncation produced already, so the constant does not change on any platform.