Edit report at https://bugs.php.net/bug.php?id=53041&edit=1
ID: 53041
Updated by: php-bugs@lists.php.net
Reported by: sunseb at live dot com
Summary: is_file() and open_basedir
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *Directory/Filesystem functions
Operating System: Linux
PHP Version: 5.3.3
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2011-07-21 10:57:15] pajoye@php.net
@kev at dewsolutions dot co dot uk
Given:
dirname(__FILE__) . '/index.php/test'
I suppose that index.php is a file, right?
------------------------------------------------------------------------
[2011-07-21 07:59:32] kev at dewsolutions dot co dot uk
Still occurs in PHP 5.3.6.
to replicate:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo 'testing open basedir problems <br />';
// append text to current directory name which should be the dir of open_basedir to trigger
open_basedir warning
echo 'checking ' . dirname(__FILE__) . 'test <br />';
var_dump(file_exists(dirname(__FILE__) . 'test'));
// no warning should occur here whether index.php exists or not
echo 'checking ' . dirname(__FILE__) . '/index.php <br />';
var_dump(file_exists(dirname(__FILE__) . '/index.php'));
// if index.php exists a open_basedir warning will be thrown
echo 'checking ' . dirname(__FILE__) . '/index.php/test <br />';
var_dump(file_exists(dirname(__FILE__) . '/index.php/test'));
------------------------------------------------------------------------
[2011-02-26 22:32:43] info at riastudio dot fr
Still occurs in 5.3.5, more than annoying when you have a lot of vhosts with
open_basedir + error_reporting E_ALL
------------------------------------------------------------------------
[2011-02-02 17:26:18] mjk at emmjaykay dot org
My apologies. But it says "directory: /home/my_file.txt" so I the directions were a little
unclear. sry
------------------------------------------------------------------------
[2011-02-02 12:39:14] sjon at react dot com
apart from you not reproducing the bug correctly (my_file.txt should obviously be a file, not a
directory), this seems to have been fixed by now.
I suspect this to fix it:
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/TSRM/tsrm_virtual_cwd.c?r1=264931&r2=264932&
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=53041--
Edit this bug report at https://bugs.php.net/bug.php?id=53041&edit=1