From: Lars Westermann Date: Tue, 30 Oct 2007 18:04:25 +0000 (+0000) Subject: [DOC] Added 3 firebird specific attributes that can be set via X-Git-Tag: RELEASE_2_0_0a1~1524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f2a873db67951f8f57a3935b29bba6d3412c786;p=php [DOC] Added 3 firebird specific attributes that can be set via PDO::setAttribute() to control formatting of date/timestamp columns: PDO::FB_ATTR_DATE_FORMAT, PDO::FB_ATTR_TIME_FORMAT and PDO::FB_ATTR_TIMESTAMP_FORMAT. These attributes are strftime format strings, and operate in the same way as the ibase.dateformat, ibase.timeformat and ibase.timestampformat ini options. (related to bug #36128, Interbase PDO) --- diff --git a/ext/pdo_firebird/pdo_firebird.c b/ext/pdo_firebird/pdo_firebird.c index dcd5dbe664..f69a2b3be0 100644 --- a/ext/pdo_firebird/pdo_firebird.c +++ b/ext/pdo_firebird/pdo_firebird.c @@ -44,7 +44,7 @@ zend_module_entry pdo_firebird_module_entry = { /* {{{ */ NULL, NULL, PHP_MINFO(pdo_firebird), - "0.2", + "0.3", STANDARD_MODULE_PROPERTIES }; /* }}} */ @@ -55,6 +55,10 @@ ZEND_GET_MODULE(pdo_firebird) PHP_MINIT_FUNCTION(pdo_firebird) /* {{{ */ { + REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_DATE_FORMAT", (long) PDO_FB_ATTR_DATE_FORMAT); + REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIME_FORMAT", (long) PDO_FB_ATTR_TIME_FORMAT); + REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIMESTAMP_FORMAT", (long) PDO_FB_ATTR_TIMESTAMP_FORMAT); + php_pdo_register_driver(&pdo_firebird_driver); return SUCCESS;