ID:               14401
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         *Configuration Issues
 Operating System: Linux i386
 PHP Version:      4.1.0
 New Comment:

Status update:
o The problem persists with php-4.1.1.
o The problem is _not_ a concurrency, but more like a
  caching problem:  It does happen even with only one
  current user of this server, but only if this user
  requests files from different subdirectories.
o This is the only virtual host where we use varying
  include_paths and we really need auto_prepend_file there,
  so I cannot say if it happens without auto_prepend_file.
  (I haven't had the time to set up a new virtual host for
  testing this.)
o From Feb. 01, 2002 until yesterday (Feb. 18), and with
  php-4.1.1 installed at the end of Jan. 2002, it happens
  in about 25 % of the requests of files where the
  auto_prepend_file feature is active.



Previous Comments:
------------------------------------------------------------------------

[2002-01-16 10:59:08] [EMAIL PROTECTED]

Having looked somewhat deeper into this issue I want to add
that the include path problem seems limited to include files
that get loaded via the auto_prepend_file directive.
Explicit "include" or "require" statements seem to work
as they should.  But please take this with a grain of salt,
because this may be a result of the fact that files with
auto_prepend_file-loaded headers have far more hits than
those with explicit "include"s.

------------------------------------------------------------------------

[2001-12-10 08:51:33] [EMAIL PROTECTED]

We have a virtual host here where the include_path varies
per directory.  We configure this in the Apache config
(php as a DSO module) like this:

<Directory /var/www/html/dir1>
  php_value include_path ".:/var/www/html/dir1/lib"
</Directory>
<Directory /var/www/html/dir2>
  php_value include_path ".:/var/www/html/dir2/lib"
</Directory>
(and many more)

We have tried this with many versions of Apache 1.3.x
and php-4.0.x (up to apache-1.3.22 / php-4.1.0RC3) and
all combinations exhibit the same problem:  If there are
two or more concurrent users that access different
directories of this virtual host, one or more of them get
pages with php errors, because the php scripts don't
get the include files they need.  The error messages show
clearly that the include files were searched via a wrong
include_path, i.e. one out of the other <Directory ..>
sections of the same virtual host.

We used both standard Redhat 7.x apache and php RPMs, as
well as self-compiled RPMs based on Redhat's SRPMs, all
with the same result/problem.

If you need more specific information, please ask.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=14401&edit=1

Reply via email to