ID:               42102
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tom at ideaweb dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Safe Mode/open_basedir
 Operating System: Linux Debian 4.0 Etch
 PHP Version:      5.2.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




Previous Comments:
------------------------------------------------------------------------

[2007-07-25 13:13:53] tom at ideaweb dot de

Description:
------------
If i have a symlink with a deleted target in the same directory (like 
vmware.pdf -> 118536740980919500.file), i cannot access the symlink 
anymore and get an error that open_basedir restriction in effect.

I followed the instruction of closed bug #41847. i downloaded the 
latest php snapshot, but it doesnt help, same issue and now i get new 
strange thing (but only with >5.2.3):

Warning: session_start() [function.session-start]: open_basedir 
restriction in effect. File(/www/tmp) is not within the allowed path
(s): (/var/www/ideaweb.de/) in /var/www/ideaweb.de/ideacms/admin/
cms_log.php on line 1

/www/tmp is the session.save_path in php.ini

Is it a good idea, that i have to put the session files in the webroot

with upcoming php versions (>5.2.3)? It means more overhead to 
protocet files from public if basedir is webroot.

Reproduce code:
---------------
<?php
        echo realpath( '.' );
        if( file_exists( "../media/db/test.pdf" ) ) {
        unlink( "../media/db/test.pdf" );
    }
?>

Expected result:
----------------
/var/www/ideaweb.de/ideacms/admin

Actual result:
--------------
/var/www/ideaweb.de/ideacms/admin
Warning: file_exists() [function.file-exists]: open_basedir restriction

in effect. File(../media/db/test.pdf) is not within the allowed
path(s): 
(/var/www/ideaweb.de/) in /var/www/ideaweb.de/ideacms/admin/
mdb_editor.php on line 697


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42102&edit=1

Reply via email to