Re: [PHP-DEV] Re: [PHP-QA] Crash bug in sysvshm (PHP-4.1.0-RC3)

2001-11-22 Thread Edin Kadribasic
> > 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 b

Re: [PHP-DEV] Re: [PHP-QA] Crash bug in sysvshm (PHP-4.1.0-RC3)

2001-11-22 Thread Derick Rethans
On Thu, 22 Nov 2001, Derick Rethans wrote: > However, this should not crash. The fix is easy though. Already on it. I added a patch to the CVS, can you tree a new checkout? (Or wait some time (3-4 hours) and try the latest snapshot. I also merged this into the 4.1.0 release branch, but imo, it's

Re: [PHP-DEV] Re: [PHP-QA] Crash bug in sysvshm (PHP-4.1.0-RC3)

2001-11-22 Thread Derick Rethans
On Thu, 22 Nov 2001, Edin Kadribasic wrote: > 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 However, this should not crash. The fix is ea

[PHP-DEV] Re: [PHP-QA] Crash bug in sysvshm (PHP-4.1.0-RC3)

2001-11-22 Thread Edin Kadribasic
> > My apache on RedHat 6.2 crashes when I try to create a shm block using > > sysvshm. Can anyone reproduce this? I'm trying to cut down the offending > > script to the smallest example possible. Will post more details later. > > Please post a backtrace too while you're at it. This is rather cri