PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - ext/pdo_firebird - pdo_firebird.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 14 14 100.0 %
Date: 2014-10-24 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :   +----------------------------------------------------------------------+
       3             :   | PHP Version 5                                                        |
       4             :   +----------------------------------------------------------------------+
       5             :   | Copyright (c) 1997-2014 The PHP Group                                |
       6             :   +----------------------------------------------------------------------+
       7             :   | This source file is subject to version 3.01 of the PHP license,      |
       8             :   | that is bundled with this package in the file LICENSE, and is        |
       9             :   | available through the world-wide-web at the following url:           |
      10             :   | http://www.php.net/license/3_01.txt                                  |
      11             :   | If you did not receive a copy of the PHP license and are unable to   |
      12             :   | obtain it through the world-wide-web, please send a note to          |
      13             :   | license@php.net so we can mail you a copy immediately.               |
      14             :   +----------------------------------------------------------------------+
      15             :   | Author: Ard Biesheuvel <abies@php.net>                               |
      16             :   +----------------------------------------------------------------------+
      17             : */
      18             : 
      19             : #ifdef HAVE_CONFIG_H
      20             : #include "config.h"
      21             : #endif
      22             : 
      23             : #include "php.h"
      24             : #include "php_ini.h"
      25             : #include "ext/standard/info.h"
      26             : #include "pdo/php_pdo.h"
      27             : #include "pdo/php_pdo_driver.h"
      28             : #include "php_pdo_firebird.h"
      29             : #include "php_pdo_firebird_int.h"
      30             : 
      31             : const zend_function_entry pdo_firebird_functions[] = { /* {{{ */
      32             :         PHP_FE_END
      33             : };
      34             : /* }}} */
      35             : 
      36             : /* {{{ pdo_firebird_deps
      37             :  */
      38             : static const zend_module_dep pdo_firebird_deps[] = {
      39             :         ZEND_MOD_REQUIRED("pdo")
      40             :         ZEND_MOD_END
      41             : };
      42             : /* }}} */
      43             : 
      44             : zend_module_entry pdo_firebird_module_entry = { /* {{{ */
      45             :         STANDARD_MODULE_HEADER_EX, NULL,
      46             :         pdo_firebird_deps,
      47             :         "PDO_Firebird",
      48             :         pdo_firebird_functions,
      49             :         PHP_MINIT(pdo_firebird),
      50             :         PHP_MSHUTDOWN(pdo_firebird),
      51             :         NULL,
      52             :         NULL,
      53             :         PHP_MINFO(pdo_firebird),
      54             :         "0.3",
      55             :         STANDARD_MODULE_PROPERTIES
      56             : };
      57             : /* }}} */
      58             : 
      59             : #ifdef COMPILE_DL_PDO_FIREBIRD
      60             : ZEND_GET_MODULE(pdo_firebird)
      61             : #endif
      62             : 
      63       20225 : PHP_MINIT_FUNCTION(pdo_firebird) /* {{{ */
      64             : {
      65       20225 :         REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_DATE_FORMAT", (long) PDO_FB_ATTR_DATE_FORMAT);
      66       20225 :         REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIME_FORMAT", (long) PDO_FB_ATTR_TIME_FORMAT);
      67       20225 :         REGISTER_PDO_CLASS_CONST_LONG("FB_ATTR_TIMESTAMP_FORMAT", (long) PDO_FB_ATTR_TIMESTAMP_FORMAT);
      68             : 
      69       20225 :         php_pdo_register_driver(&pdo_firebird_driver);
      70             : 
      71       20225 :         return SUCCESS;
      72             : }
      73             : /* }}} */
      74             : 
      75       20261 : PHP_MSHUTDOWN_FUNCTION(pdo_firebird) /* {{{ */
      76             : {
      77       20261 :         php_pdo_unregister_driver(&pdo_firebird_driver);
      78             : 
      79       20261 :         return SUCCESS;
      80             : }
      81             : /* }}} */
      82             : 
      83         148 : PHP_MINFO_FUNCTION(pdo_firebird) /* {{{ */
      84             : {
      85         148 :         php_info_print_table_start();
      86         148 :         php_info_print_table_header(2, "PDO Driver for Firebird", "enabled");
      87         148 :         php_info_print_table_end();
      88         148 : }
      89             : /* }}} */
      90             : 
      91             : /*
      92             :  * Local variables:
      93             :  * tab-width: 4
      94             :  * c-basic-offset: 4
      95             :  * End:
      96             :  * vim600: noet sw=4 ts=4 fdm=marker
      97             :  * vim<600: noet sw=4 ts=4
      98             :  */

Generated by: LCOV version 1.10

Generated at Fri, 24 Oct 2014 05:21:51 +0000 (8 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.