Re: 0 byte compiled templates
| From: | Marc Logemann | Date: | Fri, 28 Dec 2001 23:03:11 +0000 |
| Subject: | Re: 0 byte compiled templates | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2428@lists.php.net to get a copy of this message | ||
Hi,
>>The problem is, a 0 byte template results in a blank screen of course.
>>The problem: i dont know why there are sometimes 0 byte files.
> a) Your hard drive gets full at some point, so no file can be written to
> (unlikely)
yeah very unlikely, my partition is allways above 100 Mbyte free :)
> b) I don't know if this causes the problem (never played with it to see)
> but if the file is read and written to at the same time, or is read and
> while being read it tries to write to it as well, that could cause the
> file
> to have no size. Possible solution: implement file locking - I don't know
> if this is already in Smarty, so apologies if it is - it's just always
> been
> my problem.
yeah file locking could be an explanation, but on my system i am the only
one, so concurrent read/write is not very likely.
Some of my users (i am coding moregroupware a php based open source groupware)
have same problems, but very rare. I can sometimes saw the same error on
my development system.
i will try to track down the error, but this wont be easy at all, cause
its some kind of random.
I could apply a workaround into smarty regarding re-compile on 0byte file,
but like i said, this is the easy and unclever approach to solve it.
Besides this, i want to upgrade smarty w/o applying my own patches again
and again :)