File/Passwd
| From: | Yavor Shahpasov | Date: | Wed, 16 Jul 2003 00:08:54 +0000 |
| Subject: | File/Passwd | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18305@lists.php.net to get a copy of this message | ||
File/Passwd has a bug on windows
on line 214
rename($this->lockfile, $this->filename);
throws
<br />
<b>Warning</b>: rename(./passwd.lock,users): Permission denied in
<b>C:\php\pear\File\Passwd.php</b> on line <b>214</b><br />
i suggest using copy instead and possibly deleting the file, with destructors
copy($this->lockfile, $this->filename);
My target system is
WinXP with PHP5 beta1, but I have seen this bug way back, so it would be good if it got fixed.
Yavor