|  | Posted by Norman Peelman on 10/28/07 13:33 
DiAvOl wrote:> Even if the server won't run for too long (I have 300+ days uptimes on
 > my servers), the program must be written as if it would, imho.
 > I have a Resource Id of ~29000 in about 1 day, because the php server
 > opens and closes files all the time - apart from the user connections
 > - and the id keeps growing. Anyway, I think noone can answer what
 > happens if the number reaches the MAX_LONG which is 32bit on my system
 > without looking at the source code first.
 >
 > Thanks for your replies
 >
 
 Well,
 
 Assuming MAX_LONG = PHP_INT_MAX (4 byte int, 32bits) = (2^32)-1 =
 4294967295
 (I don't know, I don't have a defined MAX_LONG) then it will work for
 approximately:
 
 Your current rate:
 4294967295/29000 = 148102 days
 148102/365 = 405 years
 
 34 times your current rate:
 4294967295/1000000 = 4294 days
 4294/365 = 11 years
 
 
 
 Does that help any?
 
 Norm
 [Back to original message] |