In PHP 3, the key is passed as a C string with its length set to its strlen. This can be a problem if you want to use the DBM file as an AuthDBMUserFile for apache with NETSCAPE_DBM_COMPAT defined. In that case, apache needs a trailing NULL on the key, which this function can't do.