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_oci - pdo_oci.c (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 13 13 100.0 %
Date: 2016-06-25 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :   +----------------------------------------------------------------------+
       3             :   | PHP Version 7                                                        |
       4             :   +----------------------------------------------------------------------+
       5             :   | Copyright (c) 1997-2016 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: Wez Furlong <wez@php.net>                                    |
      16             :   +----------------------------------------------------------------------+
      17             : */
      18             : 
      19             : /* $Id$ */
      20             : 
      21             : #ifdef HAVE_CONFIG_H
      22             : #include "config.h"
      23             : #endif
      24             : 
      25             : #include "php.h"
      26             : #include "php_ini.h"
      27             : #include "ext/standard/info.h"
      28             : #include "pdo/php_pdo.h"
      29             : #include "pdo/php_pdo_driver.h"
      30             : #include "php_pdo_oci.h"
      31             : #include "php_pdo_oci_int.h"
      32             : 
      33             : /* {{{ pdo_oci_functions[] */
      34             : const zend_function_entry pdo_oci_functions[] = {
      35             :         PHP_FE_END
      36             : };
      37             : /* }}} */
      38             : 
      39             : /* {{{ pdo_oci_module_entry */
      40             : 
      41             : static const zend_module_dep pdo_oci_deps[] = {
      42             :         ZEND_MOD_REQUIRED("pdo")
      43             :         ZEND_MOD_END
      44             : };
      45             : 
      46             : zend_module_entry pdo_oci_module_entry = {
      47             :         STANDARD_MODULE_HEADER_EX, NULL,
      48             :         pdo_oci_deps,
      49             :         "PDO_OCI",
      50             :         pdo_oci_functions,
      51             :         PHP_MINIT(pdo_oci),
      52             :         PHP_MSHUTDOWN(pdo_oci),
      53             :         NULL,
      54             :         NULL,
      55             :         PHP_MINFO(pdo_oci),
      56             :         PHP_PDO_OCI_VERSION,
      57             :         STANDARD_MODULE_PROPERTIES
      58             : };
      59             : /* }}} */
      60             : 
      61             : #ifdef COMPILE_DL_PDO_OCI
      62             : ZEND_GET_MODULE(pdo_oci)
      63             : #endif
      64             : 
      65             : const ub4 PDO_OCI_INIT_MODE =
      66             : #if 0 && defined(OCI_SHARED)
      67             :                         /* shared mode is known to be bad for PHP */
      68             :                         OCI_SHARED
      69             : #else
      70             :                         OCI_DEFAULT
      71             : #endif
      72             : #ifdef OCI_OBJECT
      73             :                         |OCI_OBJECT
      74             : #endif
      75             : #ifdef ZTS
      76             :                         |OCI_THREADED
      77             : #endif
      78             :                         ;
      79             : 
      80             : /* true global environment */
      81             : OCIEnv *pdo_oci_Env = NULL;
      82             : 
      83             : /* {{{ PHP_MINIT_FUNCTION
      84             :  */
      85       22587 : PHP_MINIT_FUNCTION(pdo_oci)
      86             : {
      87       22587 :         php_pdo_register_driver(&pdo_oci_driver);
      88             : 
      89             : #if HAVE_OCIENVCREATE
      90       22587 :         OCIEnvCreate(&pdo_oci_Env, PDO_OCI_INIT_MODE, NULL, NULL, NULL, NULL, 0, NULL);
      91             : #else
      92             :         OCIInitialize(PDO_OCI_INIT_MODE, NULL, NULL, NULL, NULL);
      93             :         OCIEnvInit(&pdo_oci_Env, OCI_DEFAULT, 0, NULL);
      94             : #endif
      95             : 
      96       22587 :         return SUCCESS;
      97             : }
      98             : /* }}} */
      99             : 
     100             : /* {{{ PHP_MSHUTDOWN_FUNCTION
     101             :  */
     102       22623 : PHP_MSHUTDOWN_FUNCTION(pdo_oci)
     103             : {
     104       22623 :         php_pdo_unregister_driver(&pdo_oci_driver);
     105       22623 :         OCIHandleFree((dvoid*)pdo_oci_Env, OCI_HTYPE_ENV);
     106       22623 :         return SUCCESS;
     107             : }
     108             : /* }}} */
     109             : 
     110             : /* {{{ PHP_MINFO_FUNCTION
     111             :  */
     112         149 : PHP_MINFO_FUNCTION(pdo_oci)
     113             : {
     114         149 :         php_info_print_table_start();
     115         149 :         php_info_print_table_header(2, "PDO Driver for OCI 8 and later", "enabled");
     116         149 :         php_info_print_table_end();
     117         149 : }
     118             : /* }}} */
     119             : 
     120             : /*
     121             :  * Local variables:
     122             :  * tab-width: 4
     123             :  * c-basic-offset: 4
     124             :  * End:
     125             :  * vim600: noet sw=4 ts=4 fdm=marker
     126             :  * vim<600: noet sw=4 ts=4
     127             :  */

Generated by: LCOV version 1.10

Generated at Sat, 25 Jun 2016 07:09:02 +0000 (5 days ago)

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