Description
Negative expiry values should throw an error. It is impossible to determine if the user means to disable expiry, or has accidentally make the expiry value too low (which in C-land will cause a wrap-around).
Currently it just wraps around to a time_t (or doesn't throw an error at least).
Attachments
For Gerrit Dashboard: PCBC-117 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
21079,2 | PCBC-117 Checking that expiry times are non-negative | 1.0.x | php-ext-couchbase | Status: MERGED | +2 | +1 |
21090,2 | PCBC-117 Checking that expiry times are non-negative | master | php-ext-couchbase | Status: MERGED | +2 | +1 |