|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
MUTANTE_POWER_B Smarty n00b
Joined: 09 Oct 2003 Posts: 1 Location: Rio de Janeiro/Brazil
|
Posted: Thu Oct 09, 2003 10:58 am Post subject: Other problem with _create_dir_structure |
|
|
A problem with open_basedir happen and try i somethings and i found a solution for my case. I don't know if its is a my configuration mistake or its a Smarty's bug (version 2.5.0)
my $_open_basedir_ini have the value: "/home/phpavancado/:/lib/share/pear/:/tmp/"
So, on line 2249 of file Smarty.class.php have:
Code: | if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $this->_dir_perms)) { |
the function file_exists are getting an open_basedir errror when Smarty search for /home/phpavancado. It can't make a search on a directory out of open_basedir restriction.
How the funtion file_exists , in this case, always work with directorys, i make it:
Code: | if ($_make_new_dir && !file_exists($_new_dir . '/' ) && !@mkdir($_new_dir, $this->_dir_perms)) { |
And when a made it, i solve my problem.
thanks...
Pedro Faria. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Oct 09, 2003 4:18 pm Post subject: |
|
|
i'd try setting open_basedir to "/home/phpavancado:/lib/share/pear:/tmp" (omit the trailing slashes). this should work with an unpatched smarty. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|