php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #13067 bool dbmreplace (int dbm_identifier, string key, string value)
Submitted: 2001-08-30 16:03 UTC Modified: 2001-11-10 13:27 UTC
From: holler at ergo-soft dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.6 OS: na
Private report: No CVE-ID: None
 [2001-08-30 16:03 UTC] holler at ergo-soft dot com
in docs dbmreplace() returns bool

<b>bool dbmreplace(int dbm_identifier, string key, string value)</b>

but dbmreplace() returns int like dbminsert()

you all make a good job
gegards
robert

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-30 19:01 UTC] joey@php.net
I'm not sure what is the right thing to do here. There *is*
a mismatch, but who is correct?

The proto says:
/* {{{ proto int dbmreplace(int dbm_identifier, string key, string value)
   Replaces the value for a key in a dbm database */

So, by this reasoning, the function operates correctly.

However, it seems to me that what you want to know is
whether the replace worked or not...
 [2001-10-08 10:44 UTC] sander@php.net
Reopened.
 [2001-11-10 13:27 UTC] mj@php.net
Fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 16:01:30 2025 UTC