Reply to Re: About Resource id's

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация