Reply to Re: About Resource id's

Your name:

Reply:


Posted by Jerry Stuckle on 10/27/07 22:43

Michael Fesser wrote:
> .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.
>

No, Micha, it isn't in the real world. But maybe it is in your fantasy
land.

Or are you just trolling again? I suspect that's the case.

>> 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.
>

So what if Windows crashed after 49 days? And do you KNOW the PHP
interpreter can handle it? Can you point to the code? Or are you just
guessing - as usual?

>> 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
>

It was a rhetorical question, Micha. And instead of guessing, why don't
you find out? It's not that hard to prove.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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