#21565 [Opn]: include/require fail under safe-mode.
| From: | komanek at natur dot cuni dot cz | Date: | Mon, 28 Apr 2003 14:57:09 +0000 |
| Subject: | #21565 [Opn]: include/require fail under safe-mode. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38582@lists.php.net to get a copy of this message | ||
ID: 21565
User updated by: komanek at natur dot cuni dot cz
Reported By: komanek at natur dot cuni dot cz
Status: Open
Bug Type: Scripting Engine problem
Operating System: Tru64Unix 5.1A
PHP Version: 4.3.0
New Comment:
Still the same problem under
Server Version: Apache/1.3.27 (Unix) PHP/4.3.2-RC1 mod_ssl/2.8.14
OpenSSL/0.9.7b
Previous Comments:
------------------------------------------------------------------------
[2003-04-04 07:43:24] dinu dot marius at home dot ro
I have the same problem. It does not matter if safemode is on or off
and it does not matter where the file is located.
OS: Windows '95
PHP: 4.2.3
Server: PWS 2.0 (included in windows 95)
------------------------------------------------------------------------
[2003-04-02 08:09:38] jot at agonize dot org
Same issue under Apache 1.3.27 and PHP 4.3.1. Includes dont seem to
work at all unless the absolute path is used.. even with safe_mode set
to off.
------------------------------------------------------------------------
[2003-02-11 08:28:27] s dot birkhoff at liwest dot at
I have the same Problem under Windows 2000/XP/IIS and
PHP Version 4.3.0
In Version 4.2.3 it all works fine.
------------------------------------------------------------------------
[2003-01-30 06:49:10] Emil at Wayers dot com
My Solaris 8 and Solaris 7 both have this problem with Apache 1.3.27
and MySQL-max-3.23.54a-sun-solaris2.8 +
MySQL-max-3.23.54a-sun-solaris2.7 under PHP 4.3.0
------------------------------------------------------------------------
[2003-01-30 06:45:19] Emil at Wayers dot com
I found the excact same problem.
Fatal error: main() [function.main]: Failed opening required
'./libraries/grab_globals.lib.php'
(include_path='.:/usr/local/lib/php') in
/opt/www/conf/phpMyAdmin/index.php on line 9
Safe_mode is on here; I traced the problem to a require/include
function problem (duh)
You will have to specify the exact path to the file in safemode, even
if you have the path in your include_path.
If the file has no path given in the require or the include PHP 4.3.0
gives these kind of errors. But older version accept it.
Note; even ../../ and ./ do not work. The latest phpMyAdmin will not
work on PHP 4.3.0 with safemode on.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21565
--
Edit this bug report at http://bugs.php.net/?id=21565&edit=1