CVS update: php3/functions

From: Date: Sun, 21 Mar 1999 18:13:20 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4708@lists.php.net to get a copy of this message
Date: Sunday March 21, 1999 @ 13:13 Author: jimjag Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv841/functions Modified Files: db.c Log Message: Remove the "bogus" O_APPEND flag when using the 'c' option to dbmopen. This caused problems. This is consistant with how Perl handles "creation" of (n)db(m) files ;) Index: php3/functions/db.c diff -c php3/functions/db.c:1.89 php3/functions/db.c:1.90 *** php3/functions/db.c:1.89 Tue Mar 2 06:09:57 1999 --- php3/functions/db.c Sun Mar 21 13:13:19 1999 *************** *** 28,34 **** +----------------------------------------------------------------------+ */ ! /* $Id: db.c,v 1.89 1999/03/02 11:09:57 sas Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL #ifdef PHP_31 --- 28,34 ---- +----------------------------------------------------------------------+ */ ! /* $Id: db.c,v 1.90 1999/03/21 18:13:19 jimjag Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL #ifdef PHP_31 *************** *** 97,103 **** #define DBM_TYPE DBM * #define DBM_MODE_TYPE int #define DBM_WRITE_MODE O_RDWR ! #define DBM_CREATE_MODE O_RDWR | O_APPEND | O_CREAT #define DBM_NEW_MODE O_RDWR | O_CREAT | O_TRUNC #define DBM_DEFAULT_MODE O_RDONLY #define DBM_OPEN(filename, mode) dbm_open(filename, mode, 0666) --- 97,103 ---- #define DBM_TYPE DBM * #define DBM_MODE_TYPE int #define DBM_WRITE_MODE O_RDWR ! #define DBM_CREATE_MODE O_RDWR | O_CREAT #define DBM_NEW_MODE O_RDWR | O_CREAT | O_TRUNC #define DBM_DEFAULT_MODE O_RDONLY #define DBM_OPEN(filename, mode) dbm_open(filename, mode, 0666) -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4708) next »