summaryrefslogtreecommitdiff
path: root/ext/interbase/php_interbase.h
diff options
context:
space:
mode:
authorJouni Ahto <jah@php.net>2000-05-12 03:02:14 +0000
committerJouni Ahto <jah@php.net>2000-05-12 03:02:14 +0000
commitfc5daee43465ef8fccfbfeedf0a2f317e7adaf21 (patch)
treeb520f14a58c1b3b13d301b387d00a0e2f87fab74 /ext/interbase/php_interbase.h
parentf626eb498650e06975b49a99592fc1927086ea36 (diff)
downloadphp-git-fc5daee43465ef8fccfbfeedf0a2f317e7adaf21.tar.gz
Fixed all (?) remaining issues with InterBase 6 datatypes, especially
with timestamp, date and time. Incombatible change: renamed constant IBASE_TIMESTAMP to IBASE_UNIXTIME. Incompatible change: renamed configuration directive ibase.timeformat to ibase.timestampformat. Added constants IBASE_TIMESTAMP, IBASE_DATE, IBASE_TIME. Added configuration directives ibase.dateformat and ibase.timeformat. ibase_timefmt() now takes an optional second argument specifying which format to change, default is IBASE_TIMESTAMP (for even a little backwards compatibility).
Diffstat (limited to 'ext/interbase/php_interbase.h')
-rw-r--r--ext/interbase/php_interbase.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h
index adbfa45b0f..00fb62d251 100644
--- a/ext/interbase/php_interbase.h
+++ b/ext/interbase/php_interbase.h
@@ -89,6 +89,10 @@ typedef struct {
long allow_persistent;
int le_blob, le_link, le_plink, le_result, le_query;
char *default_user, *default_password;
+ char *timestampformat;
+ char *cfg_timestampformat;
+ char *dateformat;
+ char *cfg_dateformat;
char *timeformat;
char *cfg_timeformat;
char *errmsg;
@@ -143,11 +147,14 @@ typedef struct _php_ibase_varchar {
enum php_interbase_option {
PHP_IBASE_DEFAULT = 0,
PHP_IBASE_TEXT = 1,
- PHP_IBASE_TIMESTAMP = 2,
+ PHP_IBASE_UNIXTIME = 2,
PHP_IBASE_READ = 4,
PHP_IBASE_COMMITTED = 8,
PHP_IBASE_CONSISTENCY = 16,
- PHP_IBASE_NOWAIT = 32
+ PHP_IBASE_NOWAIT = 32,
+ PHP_IBASE_TIMESTAMP = 64,
+ PHP_IBASE_DATE = 128,
+ PHP_IBASE_TIME = 256
};
#ifdef ZTS