Re: [PHP] shared memory access - shmod_open

2007-12-11 Thread Rolf_
I tried the php function chmod($sem, 0644) which works fine even if it converts the octal number too, cf. xdebug trace file: 0.0037 50280 - chmod('/tmp/1521387531.sem', 420) ...myScripts/test.php:11 = TRUE 0.0039 50280 - shmop_open(2013277949,

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Rolf_
Yes, thank you. I checked this thread before writing here. But following the hints there does not help either. Rolf. Daniel Brown-5 wrote: On Dec 6, 2007 3:44 AM, Rolf_ [EMAIL PROTECTED] wrote: Dear List, I have a problem working with shmop_open() in a Solaris environment. The

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Rolf_
Thank you for your reply. shmop_open($sem_key, w, 420, 1) creates the same error message: --- [07-Dec-2007 12:34:23] PHP Warning: shmop_open(): unable to attach or create shared memory segment in ... [07-Dec-2007 12:34:23] PHP Stack trace: [07-Dec-2007 12:34:23] PHP 1. {main}()

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Peter Ford
Richard Lynch wrote: On Thu, December 6, 2007 2:44 am, Rolf_ wrote: I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': ?php $sem = /tmp/ . rand()

[PHP] shared memory access - shmod_open

2007-12-06 Thread Rolf_
Dear List, I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': ?php $sem = /tmp/ . rand() . .sem; touch ($sem); echo sem $sem \n; $sem_key =

Re: [PHP] shared memory access - shmod_open

2007-12-06 Thread Daniel Brown
On Dec 6, 2007 3:44 AM, Rolf_ [EMAIL PROTECTED] wrote: Dear List, I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': [snip!] Rolf, I don't

Re: [PHP] shared memory access - shmod_open

2007-12-06 Thread Richard Lynch
On Thu, December 6, 2007 2:44 am, Rolf_ wrote: I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': ?php $sem = /tmp/ . rand() . .sem; touch ($sem);