Re: Re: Crash bug in sysvshm (PHP-4.1.0-RC3)
| From: | Edin Kadribasic | Date: | Thu, 22 Nov 2001 14:51:49 +0000 |
| Subject: | Re: Re: Crash bug in sysvshm (PHP-4.1.0-RC3) | ||
| References: | 1 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-71387@lists.php.net to get a copy of this message | ||
> > 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