php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30651 ibase_add_user
Submitted: 2004-11-01 14:56 UTC Modified: 2004-11-04 09:52 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: _ex at navigators dot lv Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.1 OS:
Private report: No CVE-ID: None
 [2004-11-01 14:56 UTC] _ex at navigators dot lv
Description:
------------
if first_name and last_name are specified in ibase_add_user, warning is received: "ibase_add_user() expects at most 6 parameters, 8 given".
but in documentation: 
bool ibase_add_user ( string server, string dba_user_name, string dba_user_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])


Reproduce code:
---------------
ibase_add_user($serveraddr, $admin_name, $admin_pasw, $ulogin,
               strtolower($ulogin), $dbname, "", $dblname)

Expected result:
----------------
all ok

Actual result:
--------------
Warning: ibase_add_user() expects at most 6 parameters, 8 given in ...

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-02 12:04 UTC] _ex at navigators dot lv
PHP 5.0.1 (cli) (built: Aug 24 2004 12:43:33)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.1, Copyright (c) 1998-2004 Zend Technologies
 [2004-11-04 08:57 UTC] tony2001@php.net
Actual proto is:
bool ibase_add_user(resource service_handle, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])
So, the documentation is wrong.
Reclassifying.
 [2004-11-04 09:36 UTC] _ex at navigators dot lv
but ibase_add_user() works fine with all 8 parameters in php 4 (i used it many times). why doesn't it work in version 5?
 [2004-11-04 09:52 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

(It was changed to use service resources.)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 00:01:28 2024 UTC