You're absolutely right - that was exactly what I had done!
Hmm I guess that at his point I have noone fooled :) I'm totally new
to all this shm stuff and PHP extensions or rather the intrinsic details
of their 'inner' workings... I simply figured that if I allocate a
memory segment in PHP_MINIT_FINCTION then it should be destroyed in
PHP_MSHUTDOWN_FUNCTION. The error I did (I reckon) was to compile and
replace the PHP-module before restarting apache. This way the new
PHP_MSHUTDOWN_FUNCTION was called before PHP_MINIT_FUNCTION.
Where can I find a good explanation as to what the differences are
MINIT, RINIT, MSHUTDOWN and RSHUTDOWN?
hehe - how would one go about removing a shared memory segment
Well thank you all (Alexander in particular) for your answers they
Alexander Feldman wrote:
> Hi Thomas,
> I tried to create a shared segment of size 5 megabytes in the
> PHP_MINIT_FUNCTION and I had no problems.
> The situation you described seems as you have called shmctl with IPC_RMID
> but not everyone had detached from the segment. Then you tried to use
> shmget and it failed - remove manually the shared memory segment and try
> Alexander Feldman
> Zend Technologies Ltd.
> phone: +972 3 6139665 ext. 113, fax: +972 3 6139671
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]