1--TEST-- 2GH-16433 (Large values for openssl_csr_sign() $days overflow) 3--EXTENSIONS-- 4openssl 5--FILE-- 6<?php 7$privkey = openssl_pkey_new(); 8$csr = openssl_csr_new([], $privkey); 9var_dump(openssl_csr_sign($csr, null, $privkey, PHP_INT_MAX)); 10var_dump(openssl_csr_sign($csr, null, $privkey, -1)); 11?> 12--EXPECTF-- 13Warning: openssl_csr_sign(): Days must be between 0 and %d in %s on line %d 14bool(false) 15 16Warning: openssl_csr_sign(): Days must be between 0 and %d in %s on line %d 17bool(false) 18