]> granicus.if.org Git - php/commitdiff
MFH: Fixed Bug #23188 CDB databases created with 'c' mode do not work.
authorMarcus Boerger <helly@php.net>
Mon, 14 Apr 2003 21:53:42 +0000 (21:53 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 14 Apr 2003 21:53:42 +0000 (21:53 +0000)
NEWS
ext/dba/dba_cdb.c

diff --git a/NEWS b/NEWS
index 6f601b17c43a05dc828241b0179255f2cb9713d6..2df09387343c0f43a3ab4ae43f5b9d974d82ddb4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,7 @@ PHP 4                                                                      NEWS
 - Fixed a bug in GD's truecolor TTF handling. (Derick)
 - Fixed several 64-bit problems. (Dave)
 - Fixed several errors in hwapi extension. Objects weren't handled properly. (Uwe)
+- Fixed Bug #23188 (CDB databases created with 'c' mode do not work). (Marcus)
 - Fixed bug #23152 ($http_response_header empty on invalid URLs) (Ilia)
 - Fixed bug #23102 (integer overflow in exif_iif_add_value()). (Ilia)
 - Fixed bug #23093 (highlight_string() crashed with __FUNCTION__). (Jani)
index ee9d53a74d6849a1d44cf8bf940754f983b2708f..654f07f684a943c7c46ea557e0560a1e00b12323 100644 (file)
@@ -86,10 +86,10 @@ DBA_OPEN_FUNC(cdb)
                        break;
 #if DBA_CDB_BUILTIN
                case DBA_TRUNC:
-               case DBA_CREAT:
                        make = 1;
                        file = info->fp;
                        break;
+               case DBA_CREAT:
                case DBA_WRITER:
                        *error = "Update operations are not supported";
                        return FAILURE; /* not supported */