Bug when trying to create dir for compiled templates
| From: | user at domain dot invalid | Date: | Wed, 04 Sep 2002 16:34:31 +0000 |
| Subject: | Bug when trying to create dir for compiled templates | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-252@lists.php.net to get a copy of this message | ||
Hi,
There seems to be a bug when Smarty tries to create the directory for the compiled templates:
When the compile_dir is "/tmp/something/whatever" Smarty tries to create directories in the form "/%%-15/%%-1585884425", i.e. in the root directory.
The reason seems to be that _write_file() tries to create the directory but the parameter "$filename" is already wrong (compile_dir stripped off).
Anyone an idea how this could be fixed?
Regards,
Dennis Jacobfeuerborn