| 
 Posted by Michael Fesser on 10/27/07 22:27 
..oO(Jerry Stuckle) 
 
>DiAvOl wrote: 
> 
>> I am running a stream_select server which actually runs forever 
>> (daemon mode) and I worried because the Resource id number is around 
>> 29000 so far and I don't know what happens if that number increases 
>> forever. Another reason for asking is because maybe someone have read 
>> the source code and knows better about it. 
> 
>So?  Do you think it's going to run for years without a server reboot?  
 
Possible. 
 
>NOTHING runs forever! 
 
Just think of older Windows versions - without reboot they crashed after 
49 days because of an internal integer overflow. But I really think that 
the PHP interpreter is capable of handling such things and clever enough 
to re-use free resource IDs if necessary. 
 
>How long has it been running to get to 29K? 
 
I was about to ask a similar question. And even if PHP would just 
increase the number - what about the "natural" limits? A 32bit signed 
integer is more than 2*10^9, unsigned it's twice as big (I simply assume 
PHP doesn't use just 16bit words ...) 
 
Micha
 
  
Navigation:
[Reply to this message] 
 |