[xdebug-dev] xdebug xdebug/xdebug.c - Only deinitialize the profiler if it is actually used.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 22 Sep 2004 15:49:39 +0200

Date: Wed Sep 22 15:49:38 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Only deinitialize the profiler if it is actually used.

Modified files:
           xdebug/xdebug.c (version: 1.237)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -r1.236 -r1.237
--- xdebug/xdebug.c:1.236 Mon Sep 20 21:39:52 2004 GMT
+++ xdebug/xdebug.c Wed Sep 22 11:49:38 2004 GMT
@@ -1492,7 +1492,9 @@
 
 int xdebug_exit_handler(ZEND_OPCODE_HANDLER_ARGS)
 {
- xdebug_profiler_deinit(TSRMLS_C);
+ if (XG(profiler_enabled)) {
+ xdebug_profiler_deinit(TSRMLS_C);
+ }
         zend_exit_handler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
 }
 #endif
Received on Wed Sep 22 2004 - 15:49:52 BST

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