]> granicus.if.org Git - php/commitdiff
Timeout stuff.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 20:38:25 +0000 (20:38 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 19 May 2004 20:38:25 +0000 (20:38 +0000)
ext/pdo/pdo.c
ext/pdo/php_pdo_driver.h

index 65d5c29c669e18773b49ab5db296f397c7192d4e..fa5a1dc6caf5d8b625193d9c4bfdca996a156809 100755 (executable)
@@ -213,7 +213,8 @@ PHP_MINIT_FUNCTION(pdo)
 
        REGISTER_LONG_CONSTANT("PDO_ATTR_AUTOCOMMIT",   (long)PDO_ATTR_AUTOCOMMIT,      CONST_CS|CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("PDO_ATTR_SCROLL",               (long)PDO_ATTR_SCROLL,          CONST_CS|CONST_PERSISTENT);
-               
+       REGISTER_LONG_CONSTANT("PDO_ATTR_TIMEOUT",              (long)PDO_ATTR_TIMEOUT,         CONST_CS|CONST_PERSISTENT);
+
        INIT_CLASS_ENTRY(ce, "PDOException", NULL);
        pdo_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default(), NULL TSRMLS_CC);
 
index a0604362158a7545f40dd6193dd9dbc65f06f3e4..b1006d1f0ca66de05d8bfbb845ef2a3a63fb2354 100755 (executable)
@@ -58,6 +58,7 @@ enum pdo_attribute_type {
        PDO_ATTR_AUTOCOMMIT,    /* use to turn on or off auto-commit mode */
        PDO_ATTR_SCROLL,                /* ask for a scrollable cursor (when you prepare()) */
        PDO_ATTR_PREFETCH,              /* configure the prefetch size for drivers that support it */
+       PDO_ATTR_TIMEOUT,               /* connection timeout in seconds */
 };
 
 /* generic error code values.