ID: 42560 Comment by: gentoo at oliwel dot de Reported By: Bjorn dot Wiberg at its dot uu dot se Status: Open Bug Type: Safe Mode/open_basedir Operating System: IBM AIX 5.3 5300-05-06 PHP Version: 5.2.4 New Comment:
Still broken in 5.2.6 on Linux 32bit - crashes OLE Libs from PEAR used by Excel Spredsheet Writer. Previous Comments: ------------------------------------------------------------------------ [2007-12-07 14:11:39] gerome dot fournier at infomaniak dot ch Same issue with PHP 5.2.5. Any feedbacks from the PHP team concerning this issue would be greatly appreciated. ------------------------------------------------------------------------ [2007-11-10 21:44:58] mb at smartftp dot com Bug still present in version 5.2.5. It's very frustrating to see how the PHP team constantly ignores bug reports. ------------------------------------------------------------------------ [2007-09-18 08:08:23] mb at smartftp dot com Same problem on Windows 2003 with Apache. ------------------------------------------------------------------------ [2007-09-05 11:59:34] Bjorn dot Wiberg at its dot uu dot se Description: ------------ If open_basedir is used -- even if it includes /tmp among its directories -- calling tempnam() with an empty string as the first (directory) argument does not make PHP fall back to "the system default" as http://se.php.net/manual/en/function.tempnam.php specifies. Reproduce code: --------------- // open_basedir: .:/apache/php/lib:/tmp:/usr/local/bin:/usr/local/etc/Counter/data:/apache/htdocs/webdev-its tempnam('', 'test'); Expected result: ---------------- No errors, temporary file gets created in /tmp or whatever the fallback is. Actual result: -------------- >From the Apache error log: Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (.:/apache/php/lib:/tmp:/usr/local/bin:/usr/local/etc/Counter/data:/apache/htdocs/webdev-its) in /apache/htdocs/webdev-its/limesurvey/admin/classes/pear/OLE/PPS/File.php on line 87 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42560&edit=1