PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_Passwd » Bug #3701

Saving result file

Details

Submitted2005-03-04 10:30 UTC
Fromfirmanw at gmail dot com
StatusBogus
PackageFile_Passwd
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2005-03-04 10:30 UTC] firmanw at gmail dot com

Description:
------------
Saving result file error when creating for the first time.

Reproduce code:
---------------
require_once 'File/Passwd.php';

$oPasswd =& File_Passwd::factory('CVS');
$oPasswd->addUser('firman', 'mypass', 'firman');
$oPasswd->save();

Expected result:
----------------
PHP raise error:
Notice: Uninitialized string offset: 0 in E:\www\htdocs\PEAR\pear\Console\Getopt.php on line 123

Result file not saved

Actual result:
--------------
No PHP error and file has saved.