Re: Smarty File Lock Problem in Windows

From: Date: Thu, 01 Mar 2001 20:52:39 +0000
Subject: Re: Smarty File Lock Problem in Windows
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-263@lists.php.net to get a copy of this message
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 > http://www.phpinsider.com/php/code/Smarty/ -- 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/

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