Re: Smarty File Lock Problem in Windows

From: Date: Thu, 01 Mar 2001 20:59:31 +0000
Subject: Re: Smarty File Lock Problem in Windows
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-264@lists.php.net to get a copy of this message
So if we remove exclusive file locking, do you think there would be any problems with multiple writes to a file? This could be a problem with caching turned on, several clients could be trying to write the same cache file. I don't know if this would corrupt, or if the file would be OK. Does anyone know? "Alexander, Jason" wrote: > > Interesting. > > I'm running Win2K both at home, and at work. Smarty works great for me at > work, but I get the 0kb file problem at home. Weird. > > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Thursday, March 01, 2001 2:48 PM > To: Jim Harlindong > Cc: smarty@lists.ispi.net > Subject: [smarty] Re: Smarty File Lock Problem in Windows > > I see in the php bug database that there is a problem with flock and > windows 2000. Are you using 2000 by chance? > > http://bugs.php.net/bugs.php?id=9203 > > Jim Harlindong wrote: > > > > The following line should be commented in Windows inside _write_file() > > > > // flock($fd, LOCK_EX); > > > > Without doing so will cause smarty to fail writing to file, resulting in 0 > > sized compiled files. Took me 40 minutes to figure this out :) > > > > Regards, > > Jimmy > > > > --- > > You are currently subscribed to smarty as: monte@ispi.net > > To unsubscribe send a blank email to $subst('Email.Unsub') > > Visit Smarty's homepage at ÷ãÁ > > -- > Monte Ohrt <monte@ispi.net> > http://www.ispi.net/ > > --- > You are currently subscribed to smarty as: jalexander@aivia.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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