Re: Posix Shared Memory Support?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, January 5, 2007 5:09 pm, Jochem Maas wrote:
> David George wrote:
>> On 1/5/2007 5:41 PM, Jochem Maas wrote:
>>> David George wrote:
>>>
>>>> I have an application on Linux 2.6.9 which uses posix shared
>>>> memory and
>>>> I need to access the shared memory via a web page using php.
>>>> Looks like
>>>> PHP only supports System V shared memory, which isn't an option
>>>> for me
>>>> in this case.
>>>>
>>>
>>> is this what your looking for?
>>>
>>>     http://php.net/manual/en/ref.shmop.php
>>>
>>>
>> I thought shm and shmop were both system V?  I may have
>> misunderstood
>> because in PHP they are accessed with a key, whereas POSIX shm is
>> usually accessed via a name.
>>
>> Of course I could be wrong.  :-)
>
> that goes for both of us, I was going on guess work really, based on
> the fact
> that this page mentions System V:
>
> 	http://www.php.net/manual/en/ref.sem.php
>
> but this pages mentions only 'Unix Shared Memory':
>
> 	http://php.net/manual/en/ref.shmop.php
>
> I was kind of hoping thse 2 extensions were not actually [doing] the
> exact same thing hiding behind 2 different (which seems silly)
>
> maybe a bigger egghead can shed some real light on the matter
> (including the discrepancy between key/name that you mentioned).

The User Contributed Notes (*always* read those!) make it clear that
shmod is NOT Sys V.

It looks like it's not POSIX either, but I could be reading too much
into it...

Seems more similar to POSIX than Sys V, from my limited
experience^H^H^H^H^H^H^H^H^H^H reading. :-)

It's possible that "name" was changed to "key" just to be more
consistent with the SysV stuff as a migration.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux