cvs: pear /File_Passwd package.xml /File_Passwd/Passwd Common.php

From: Date: Mon, 21 Feb 2005 11:08:46 +0000
Subject: cvs: pear /File_Passwd package.xml /File_Passwd/Passwd Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29612@lists.php.net to get a copy of this message
mike Mon Feb 21 06:08:46 2005 EDT Modified files: /pear/File_Passwd/Passwd Common.php /pear/File_Passwd package.xml Log: Fixed bug in File_Passwd_Common::_open(): could not safe into non-existant file http://cvs.php.net/diff.php/pear/File_Passwd/Passwd/Common.php?r1=1.13&r2=1.14&ty=u Index: pear/File_Passwd/Passwd/Common.php diff -u pear/File_Passwd/Passwd/Common.php:1.13 pear/File_Passwd/Passwd/Common.php:1.14 --- pear/File_Passwd/Passwd/Common.php:1.13 Tue Feb 1 13:22:46 2005 +++ pear/File_Passwd/Passwd/Common.php Mon Feb 21 06:08:46 2005 @@ -11,7 +11,7 @@ // | Copyright (c) 2003-2004 Michael Wallner <mike@iworks.at> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.13 2005/02/01 18:22:46 mike Exp $ +// $Id: Common.php,v 1.14 2005/02/21 11:08:46 mike Exp $ /** * Baseclass for File_Passwd_* classes. @@ -44,7 +44,7 @@ * * @author Michael Wallner <mike@php.net> * @package File_Passwd -* @version $Revision: 1.13 $ +* @version $Revision: 1.14 $ * @access protected * @internal extend this class for your File_Passwd_* class */ @@ -144,9 +144,9 @@ */ function &_open($mode, $file = null) { - $file = realpath( is_null($file) ? $this->_file : $file ); - $dir = dirname($file); - $lock = strstr($mode, 'r') ? LOCK_SH : LOCK_EX; + isset($file) or $file = $this->_file; + $dir = dirname($file); + $lock = strstr($mode, 'r') ? LOCK_SH : LOCK_EX; if (!is_dir($dir) && !System::mkDir('-p -m 0755 ' . $dir)) { return PEAR::raiseError( sprintf(FILE_PASSWD_E_DIR_NOT_CREATED_STR, $dir), http://cvs.php.net/diff.php/pear/File_Passwd/package.xml?r1=1.38&r2=1.39&ty=u Index: pear/File_Passwd/package.xml diff -u pear/File_Passwd/package.xml:1.38 pear/File_Passwd/package.xml:1.39 --- pear/File_Passwd/package.xml:1.38 Thu Feb 10 11:35:17 2005 +++ pear/File_Passwd/package.xml Mon Feb 21 06:08:46 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.38 $ --> +<!-- $Revision: 1.39 $ --> <package version="1.0"> <name>File_Passwd</name> <license>PHP</license> @@ -23,6 +23,7 @@ <state>stable</state> <notes><![CDATA[ * Performance improvements for APR MD5 encryption by Ants Aasma <ants.aasma@mig.ee> +* Fixed bug in File_Passwd_Common::_open(): could not safe into non-existant file ]]> </notes> <filelist> <dir name="/" baseinstalldir="File">

« previous php.pear.cvs (#29612) next »