ID: 41779 User updated by: derernst at gmx dot ch Reported By: derernst at gmx dot ch Status: Open Bug Type: Safe Mode/open_basedir Operating System: Linux PHP Version: 5.2.3 New Comment:
The ISP informed me now that he will not install the snapshot as he does not have a test environment, and only wants to run stable releases. So I am sorry I am not able to provide feedback about the snapshot. Previous Comments: ------------------------------------------------------------------------ [2007-06-27 12:23:39] derernst at gmx dot ch I am working on shared hosting and don't have a server or a local PHP installation nor the knowledge how to maintain it. So I asked the ISP where the issue occurred to kindly try the new snapshot posted. I did not get an answer so far; if he does help with the test, I will post the results here as soon as possible. Anyway if there was someone else who does not mind testing the snapshot with correct open_basedir settings and ftp_nlist() or ftp_rawlist(), I would highly appreciate this. ------------------------------------------------------------------------ [2007-06-25 17:49:27] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2007-06-22 14:18:09] derernst at gmx dot ch Description: ------------ After my ISP upgraded to PHP 5.2.3 (sorry I don't know from which previous version), functions ftp_nlist() and ftp_rawlist() stopped working: PHP Warning: ftp_nlist() [function.ftp-nlist]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/data/htdocs/domain.com/:/usr/local/share/pear/:/tmp/:/var/tmp/) in ... Note that the required path does actually match an allowed paths entry: - File(/var/tmp/) - allowed path(s): (/data/htdocs/domain.com/:/usr/local/share/pear/:/tmp/:/var/tmp/) I found several bugs that might be related to this one, see bugs nr. 40141, 41518, 41684; bug 13720 describes the same phenomenon but assumably for an other reason. The functions work again after my ISP removed the trailing slashes from the open_basedir entries. This can't be a desirable solution, though! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41779&edit=1