Safe Mode error (again)

From: Date: Tue, 01 Jan 2002 15:24:28 +0000
Subject: Safe Mode error (again)
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2461@lists.php.net to get a copy of this message
Hi, i still have a problem with that safe mode server... looks like when directories are created in the templates_c directory, they are owned by www-data, which is the http user. So, the first directory is correctly created, since template_c's UID is the same UID than the one of the script. Then when another directory or file needs to be written in that directory, it fails since the newly created directory's UID is not mine but httpd's... and the script's execution fails. Is it a smarty related issue or a php issue ?? in my opinion, when running safe mode, the mkdir (or any fopen, fwrite...) function should chown the file / directory to the script user... Another thing i've noticed in Smarty.class.php: on line 1386 (1.5.2), there is a mkdir($new_dir, 0775). On the server i'm using, the directory mode is not 775 but 755... i changed it 0777, and no difference. I also added umask(0) before that line, and no changes. Bertrand (aka Katana on EFNet :p)

« previous php.smarty.general (#2461) next »