|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53484 closing slash does not work
Submitted: 2010-12-06 12:48 UTC Modified: 2010-12-06 12:52 UTC
From: lampacz at gmail dot com Assigned:
Status: Duplicate Package: Safe Mode/open_basedir
PHP Version: 5.3.3 OS: Linux Debian testing
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: lampacz at gmail dot com
New email:
PHP Version: OS:


 [2010-12-06 12:48 UTC] lampacz at gmail dot com

php_admin_value open_basedir /var/www/domain.tld/:/usr/share/php/

Produces in error.log:

PHP Warning:  Unknown: open_basedir restriction in effect. File(/var/www/domain.tld/home/film/xinfo.php) is not within the allowed path(s): (/var/www/domain.tld/:/usr/share/php) in Unknown on line 0
PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
PHP Fatal error:  Unknown: Failed opening required '/var/www/domain.tld/home/film/xinfo.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

And no output in log

After rewrite

php_admin_value open_basedir /var/www/domain.tld:/usr/share/php # no ending slash

everything start working


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-06 12:52 UTC]
-Status: Open +Status: Duplicate
 [2010-12-06 12:52 UTC]
Duplicate of #53352 (fixed in svn and last 5.3.4RC), also Debian has to update their testing tree.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 17:05:53 2022 UTC