Re: SV: [SMARTY] current CVS version can't update recompiled template

From: Date: Mon, 03 Mar 2003 20:32:19 +0000
Subject: Re: SV: [SMARTY] current CVS version can't update recompiled template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8348@lists.php.net to get a copy of this message
What is the value of const PHP_OS for you? The file should get unlinked before it gets renamed on windows systems. Monte On Sun, 2003-03-02 at 05:33, Paolo Nesti Poggi wrote: > > Fra: Monte Ohrt [mailto:monte@ispi.net] > > Emne: RE: [SMARTY] current CVS version can't update recompiled template > > > > > > Yesterday morning the rename() functionality was added, affecting > > Windows since rename can't write over an existing file. Inconsistent > > behavior of rename between OS's I guess. > > In cvs version there is still a call to rename() that generates a Warning in > Windows 98 > This happens only when debugging =true > Warning: Rename failed (File exists) in c:\php\pear\Smarty\Smarty.class.php > on line 2063 > > Paolo > > > Monte > > > > On Tue, 2003-02-25 at 03:51, Boštjan Žokš wrote: > > > It works now, but problem arised in last 7 day changes to CVS. About a > > > week ago everything worked fine (exactly same system setup/code). > > > > > > > -----Original Message----- > > > > From: Monte Ohrt [mailto:monte@ispi.net] > > > > Sent: Tuesday, February 25, 2003 12:29 AM > > > > To: Boštjan Žokš > > > > Cc: 'Smarty General' > > > > Subject: Re: [SMARTY] current CVS version can't update > > > > recompiled template > > > > > > > > > > > > I committed a patch that unlinks/renames for WIN OS. I also suppressed > > > > the errors in case more than one process is trying to unlink/rename > > > > (good?) > > > > > > > > Monte > > > > > > > > On Mon, 2003-02-24 at 17:13, Boštjan Žokš wrote: > > > > > Actually it can't replace old compiled template with new > > > > one. Same for > > > > > cached templates. > > > > > > > > > > Warning: > > > > > > > > > rename(var/templates_c/\%%117\%%1172603085/3e5aa6541d12f,var/t > > > > emplates_c > > > > > /\%%117\%%1172603085\index.tpl.php) [function.rename]: File > > > > exists in > > > > > c:\.....\Smarty.class.php on line 2063 > > > > > > > > > > Using current CVS version (Smarty 1.358, Smarty_compiler 1.182) on > > > > > win32. > > > > > > > > > > Regards, > > > > > Bostjan > > > > > > > > > -- > > > > Monte Ohrt <monte@ispi.net> > > > > > > > > > > > > -- > > > > Smarty General Mailing List (http://smarty.php.net/) > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > -- > > Monte Ohrt <monte@ispi.net> > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- Monte Ohrt <monte@ispi.net>

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