> > Test case:
> >
> > $key=0x5432;
> > $id=shm_attach($key, 4096);
> > shm_remove($key);
>
> Your script is buggy, this should be the script:
>
> $key = 0x5432;
> $id = shm_attach ($key, 4096);
> shm_remove ($id); // Not $key

As you can see from the user notes on shm_remove docs page, this has been
changed since 4.0.6. I was not aware that. Maybe it should be mentioned in
release notes. I really don't like changes like this where I cannot make a
program that would run on both php 4.0.6 and 4.1.0.

Btw. you fix seem to work just fine.

Edin



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

Reply via email to