- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,417
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
In a number of places
The problem is this is somewhat inconsistent in a number of places. Most of the time
If a bad value is passed in (likely due to editing html or bad templating), then
strtotime
is used to parse something like "+$value $unit" from user-input to generate a datetime stamp from a relative time structure.The problem is this is somewhat inconsistent in a number of places. Most of the time
0
means permanent, but some places have a check against pow(2,32) - 1
.If a bad value is passed in (likely due to editing html or bad templating), then
strtotime
return false
rather than raise an error and silently fails...