Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Other problem with _create_dir_structure

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
MUTANTE_POWER_B
Smarty n00b


Joined: 09 Oct 2003
Posts: 1
Location: Rio de Janeiro/Brazil

PostPosted: Thu Oct 09, 2003 10:58 am    Post subject: Other problem with _create_dir_structure Reply with quote

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
View user's profile Send private message Visit poster's website
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Oct 09, 2003 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP