[PHP-DEV] PHP 4.0 Bug #6480: doc_root fails in safe_mode From: gvillemure <email protected>
Date: 08/31/00

From: gvillemure <email protected>
Operating system: RH6.1
PHP version: 4.0.2
PHP Bug Type: Scripting Engine problem
Bug description: doc_root fails in safe_mode

Problem: doc_root fails in safe_mode with PHP4.0.2

If I set the following in my /usr/local/lib/php.ini

safe_mode = On
doc_root = /u/vhome

I get:
Warning: Unable to access /u/vhome/u/vhome/ik.ca/www/old/info.php3 in
Unknown on line 0
Warning: Failed opening '/u/vhome/ik.ca/www/old/info.php3' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0

Notice in the first line the /u/vhome is there twice.

If I turn off safe_mode or remove doc_root then its fine.

Thanks,
Gerald Villemure

Some info:
System: RH6.1

#PHP4.0.2
./configure --with-apache=../apache_1.3.12 --with-mysql \
--with-imap=../imap-4.7c --with-ldap --with-zlib \
--enable-debug=no --enable-memory-limit=yes \
--enable-safe-mode --enable-track-vars

#Apache 1.3.12
./configure --prefix=/usr/local/apache --enable-module=ssl \
--activate module=src/modules/php4/libphp4.a \
--disable-module=userdir --disable-module=actions \
--enable-module=rewrite

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>