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

LTP GCOV extension - code coverage report
Current view: directory - spl - spl_engine.c
Test: PHP Code Coverage
Date: 2009-11-19 Instrumented lines: 7
Code covered: 100.0 % Executed lines: 7
Legend: not executed executed

       1                 : /*
       2                 :    +----------------------------------------------------------------------+
       3                 :    | PHP Version 5                                                        |
       4                 :    +----------------------------------------------------------------------+
       5                 :    | Copyright (c) 1997-2009 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                 :    | Authors: Marcus Boerger <helly@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 "zend_interfaces.h"
      27                 : 
      28                 : #include "php_spl.h"
      29                 : #include "spl_functions.h"
      30                 : #include "spl_engine.h"
      31                 : 
      32                 : #include "spl_array.h"
      33                 : 
      34                 : /* {{{ spl_instantiate */
      35                 : PHPAPI void spl_instantiate(zend_class_entry *pce, zval **object, int alloc TSRMLS_DC)
      36             143 : {
      37             143 :         if (alloc) {
      38              28 :                 ALLOC_ZVAL(*object);
      39                 :         }
      40             143 :         object_init_ex(*object, pce);
      41             143 :         (*object)->refcount = 1;
      42             143 :         (*object)->is_ref = 1; /* check if this can be hold always */
      43             143 : }
      44                 : /* }}} */
      45                 : 
      46                 : /*
      47                 :  * Local variables:
      48                 :  * tab-width: 4
      49                 :  * c-basic-offset: 4
      50                 :  * End:
      51                 :  * vim600: fdm=marker
      52                 :  * vim: noet sw=4 ts=4
      53                 :  */

Generated by: LTP GCOV extension version 1.5

Generated at Thu, 19 Nov 2009 08:20:20 +0000 (5 days ago)

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