Re: [SMARTY] Unlock file
| From: | Monte Ohrt | Date: | Mon, 06 Jan 2003 14:45:43 +0000 |
| Subject: | Re: [SMARTY] Unlock file | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7030@lists.php.net to get a copy of this message | ||
Good question. There should probably be an unlock right after the
fclose(). However, I've never heard any complaints about a file staying
locked, so maybe the file is unlocked automatically upon fclose() for
the given file pointer?
Monte
On Mon, 2003-01-06 at 04:21, Kerry Kobashi wrote:
> Where does smarty unlock a file that has been read in?
>
> In the _read_file function, a shared lock is obtained. But I don't see any
> flock($fd, LOCK_UN) to unlock it.
> The same goes for _write_file where it obtains a exclusive lock.
>
> Am I missing something here?
>
> ---------------------------------------------
> Kerry Kobashi
> Kobashi Computing
>
>
--
Monte Ohrt <monte@ispi.net>