php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24976 include_path randomly corrupted
Submitted: 2003-08-07 11:55 UTC Modified: 2003-08-08 17:15 UTC
From: rs6079 at nbtsc dot org Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.2 OS: Linux / Glibc-2.3
Private report: No CVE-ID: None
 [2003-08-07 11:55 UTC] rs6079 at nbtsc dot org
Description:
------------
I've an apache-2.0.47 setup with several vhosts, using mpm_prefork

Some scripts when they load will throw file-not-found errors, because requires fail as the include path may be set to, instead of ".:/usr/share/pear", things like "<garbage>pear", "<garbage>.:/usr/share/pear", "<garbage>are/pear<garbage>"

It acts like threads stepping on each other, but I'm using mpm_prefork.

My mega-configure line is:
 
'./configure' 'LDFLAGS=-s' 'CFLAGS=-O2 -march=athlon -DEAPI=1 -I/usr/X11R6/include' 'CXXFLAGS=-O2 -march=athlon' 'FFLAGS=-O2 -march=athlon' 'CPPFLAGS=' 'CC=athlon-pld-linux-gcc' 'CXX=athlon-pld-linux-g++' '--build=athlon-pld-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc/php' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-path=/etc/php' '--with-exec-dir=/usr/bin' '--disable-debug' '--enable-memory-limit' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--enable-dba=shared' '--enable-dbx=shared' '--enable-dio=shared' '--enable-exif=shared' '--enable-ftp=shared' '--enable-gd-native-ttf' '--enable-magic-quotes' '--enable-mbstring=shared' '--disable-mbstr-enc-trans' '--enable-mbregex' '--enable-overload=shared' '--disable-pcntl' '--enable-posix=shared' '--enable-session' '--enable-shared' '--enable-shmop=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--enable-sockets=shared' '--enable-ucd-snmp-hack' '--enable-wddx=shared' '--enable-xml=shared' '--enable-xslt=shared' '--enable-yp=shared' '--with-bz2=shared' '--with-cpdflib=shared' '--with-crack=shared' '--with-curl=shared' '--with-db' '--with-db4' '--with-dbase=shared' '--with-dom=shared' '--with-dom-xslt=shared' '--with-dom-exslt=shared' '--with-expat-dir=shared,/usr' '--with-iconv=shared' '--with-filepro=shared' '--with-freetype-dir=shared' '--with-gettext=shared' '--with-gd=shared,/usr' '--with-gdbm' '--with-gmp=shared' '--with-hyperwave=shared' '--with-imap=shared' '--with-imap-ssl' '--with-interbase=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-ldap=shared' '--with-mcal=shared,/usr' '--with-mcrypt=shared' '--with-mhash=shared' '--with-ming=shared' '--with-mnogosearch=shared,/usr' '--with-msession=shared' '--with-mysql=shared,/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl' '--with-pcre-regex=shared' '--with-pdflib=shared' '--with-pear=/usr/share/pear' '--with-pgsql=shared,/usr' '--with-png-dir=shared,/usr' '--with-pspell=shared' '--with-regex=php' '--without-sablot-js' '--with-snmp=shared' '--with-sybase-ct=shared,/usr' '--with-t1lib=shared' '--with-tiff-dir=shared,/usr' '--with-unixODBC=shared' '--with-xmlrpc=shared,/usr' '--with-xslt-sablot=shared' '--with-yaz=shared' '--with-zip=shared' '--with-zlib=shared' '--with-zlib-dir=shared,/usr'

Though the actual modules being used are fairly small in the cases I've seen the bug show up: imap, mysql, pcre, pspell are the ones that come to mind.

Reproduce code:
---------------
Can't reproduce reliably, but IMP from the Horde project will trigger it, as well as TWIG from http://twig.screwdriver.net


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-08 03:36 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Same as bug #23580 and bug #24282
 [2003-08-08 09:32 UTC] rs6079 at nbtsc dot org
This is not the same as the above bugs.  This is random binary garbage in the path, not a round-robin effect "leaking" from other vhosts.
 [2003-08-08 17:15 UTC] sniper@php.net
It's the same problem.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 23:01:28 2024 UTC