[xdebug-dev] xdebug xdebug/xdebug_code_coverage.c - xdebug_code_coverage_stop() will now clean up the code coverage array, unless

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sun, 24 Oct 2004 17:53:31 +0200

Date: Sun Oct 24 17:53:31 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- xdebug_code_coverage_stop() will now clean up the code coverage array, unless
  you specify FALSE as parameter.

Modified files:
           xdebug/xdebug_code_coverage.c (version: 1.11)

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xdebug/xdebug_code_coverage.c:1.10 Wed Oct 06 04:56:28 2004 GMT
+++ xdebug/xdebug_code_coverage.c Sun Oct 24 13:53:31 2004 GMT
@@ -109,6 +109,15 @@
 
 PHP_FUNCTION(xdebug_stop_code_coverage)
 {
+ long cleanup = 1;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &cleanup) == FAILURE) {
+ return;
+ }
+ if (cleanup) {
+ xdebug_hash_destroy(XG(code_coverage));
+ XG(code_coverage) = xdebug_hash_alloc(32, xdebug_coverage_file_dtor);
+ }
         XG(do_code_coverage) = 0;
 }
 
Received on Sun Oct 24 2004 - 17:54:01 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST