Re: [SMARTY] Re: windows problem with loads of *.tmp files - MORE info

From: Date: Mon, 30 Jan 2006 16:12:56 +0000
Subject: Re: [SMARTY] Re: windows problem with loads of *.tmp files - MORE info
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13289@lists.php.net to get a copy of this message
The attached php file got lost. This time the file is attached as text file. Hope this works... Greetings, Jan Rosier Jan Rosier wrote: > I think the problem is in the file libs/internals/core.write_file.php. > Try the patched version attached to this mail. > > Here is what I think is happening: > At line 28 an temp file is created, then at line 30 this file is > opened for writing. > If opening the temp file fails Smarty will try to create a temp file > using uniqid() (line 31) > But the temp file already created at line 28 isn't removed first. > > I also attached a diff to the last version that is in the cvs. > > Greetings, > Jan Rosier > >

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