PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.