|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16927 open_basedir restriction doesn't work
Submitted: 2002-04-30 08:48 UTC Modified: 2005-01-31 23:31 UTC
From: peton at cavalex dot com Assigned:
Status: Closed Package: Safe Mode/open_basedir
PHP Version: 4.2.0 OS: Linux 2.4.18
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 - 37 = ?
Subscribe to this entry?

 [2002-04-30 08:48 UTC] peton at cavalex dot com

With the following value:
for the open_basedir variable, all these commands
work without error (or warning):

$zip = zip_open("/sites/");
$zip = zip_open("/tmp/");
$zip = zip_open("/sites/");

I was waiting for an open_basedir restriction for 
the two last. Probably a lack of test for this 
open command.

--- config ----

safe_mode  On


--- compil ---
'./configure' '--prefix=/usr/local/tool/php4' '--with-apxs=/usr/local/tool/apache/bin/apxs' '--with-mysql=/usr/local/tool/mysql' '--with-pgsql=/usr' '--with-zlib' '--with-bz2' '--with-zip=/usr/local/tool/zziplib' '--with-dom=/usr/lib' '--with-gd=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local/tool/freetype' '--with-t1lib=/usr/local/tool/t1lib' '--with-pdflib=/usr/local/tool/pdflib' '--with-bcmath' '--with-tiff-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-jpeg-dir=/usr/lib' '--with-xpm-dir=/usr/X11R6' '--with-iconv' '--disable-debug' '--enable-xslt' '--with-xslt-sablot=/usr/local/tool/Sablot' '--with-expat-dir=/usr/local/tool/expat' '--enable-safe-mode' '--enable-memory-limit' '--enable-ftp' '--enable-calendar' '--enable-trans-sid=yes' '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-debug=no' '--enable-force-cgi-redirect=yes'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-30 09:00 UTC]
Confirmed, this function has no signs of honoring safe_mode.
 [2002-05-20 14:34 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Oct 03 02:03:44 2022 UTC