1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00

Fix for Bug #18746 by sfox and I

#What is the GDBM_FIX for anyways, we can find it anywhere?
This commit is contained in:
Dan Kalowsky
2002-08-13 04:10:31 +00:00
parent cd9bb8e555
commit f9e8a5701b
+5 -4
View File
@@ -38,15 +38,11 @@
#include <unistd.h>
#endif
#ifdef PHP_31
#include "os/nt/flock.h"
#else
#ifdef PHP_WIN32
#include "win32/flock.h"
#else
#include <sys/file.h>
#endif
#endif
#if HAVE_FCNTL_H
#include <fcntl.h>
@@ -630,7 +626,12 @@ char *php_dbm_fetch(dbm_info *info, char *key TSRMLS_DC)
DBM_TYPE dbf;
key_datum.dptr = key;
#ifdef PHP_WIN32
key_datum.dsize = strlen(key+1);
#else
key_datum.dsize = strlen(key);
#endif
#if GDBM_FIX
key_datum.dsize++;
#endif