Re: [File_Passwd] realpath() This is the File_Passwd or PHP bugs?

From: Date: Sun, 20 Feb 2005 12:59:20 +0000
Subject: Re: [File_Passwd] realpath() This is the File_Passwd or PHP bugs?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36274@lists.php.net to get a copy of this message
Firman Wandayandi wrote:
Filename: File/Passwd/Common.php <snip>
145:    function &_open($mode, $file = null)
146:    {
147:        $file   = realpath( is_null($file) ? $this->_file : $file );
               ...
170:    }
</snip> I have problem when saving the file, cause the file not exists I think. realpath() return null when a file not exist, but how if I want create it for the first time.
Yeah, seems like a bug in File_Passwd to me... I'll fix it next week, (you could add a bug report so that I don't forget about it). Thanks, Michael

« previous php.pear.dev (#36274) next »