Re: PHP Apache

From: Craig A. Berry (craigberry_at_mac.com.spamfooler)
Date: 11/18/03


Date: Mon, 17 Nov 2003 22:20:01 -0600

In article <%B6ub.163$s8.2361@news.on.tac.net>,
 "Jerry Alan Braga" <jabraga@flanagan.ca> wrote:

> I am testing some php solutions on openvms 7.3-1 / apache 1.3.26 and PHP
> 4.3.
>
> Testing this email client I keep running into this error
>
> session_start(): open(/tmp/sess_ed721776dd7ff819bed6a1ac0c391883, O_RDWR)
> failed: file currently locked by another user (65535) in
> /php$test/squirrelmail/functions/global.php on line 294
>
> Is it because vms cannot close the files fast enough, or is there some
> setting I can use to fix it

By default, files are not opened for shared access on OpenVMS. I don't
know whether PHP provides any optional extensions to change the
default, but you can probably skip the PHP layer and define the
following feature logical for the C run-time:

$ define DECC$FILE_SHARING ENABLE

Make sure that's in a logical name table that will be seen by your
script. This assumes that PHP's open() uses the CRTL's open(), a
likely, but not certain, supposition. The CRTL documentation for this
logical name is located here:

http://h71000.www7.hp.com/doc/731FINAL/5763/5763pro_005.html#index_x_129