[xdebug-dev] xdebug xdebug/php_xdebug.h xdebug/xdebug.c session.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 17 Jan 2006 21:58:36 +0100

Date: Tue Jan 17 21:58:35 CET 2006
User: Derick Rethans
Directory: xdebug

Log Message:
- Fixed bug #111: xdebug does not ignore set_time_limit() function during debug
  session.

Modified files:
           xdebug/php_xdebug.h (version: 1.99)
           xdebug/xdebug.c (version: 1.290)

[FILE: /xdebug/php_xdebug.h]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- xdebug/php_xdebug.h:1.98 Sun Jan 01 14:27:27 2006 GMT
+++ xdebug/php_xdebug.h Tue Jan 17 19:58:35 2006 GMT
@@ -64,6 +64,8 @@
 PHP_FUNCTION(xdebug_call_file);
 PHP_FUNCTION(xdebug_call_line);
 
+PHP_FUNCTION(xdebug_set_time_limit);
+
 PHP_FUNCTION(xdebug_var_dump);
 PHP_FUNCTION(xdebug_debug_zval);
 PHP_FUNCTION(xdebug_debug_zval_stdout);

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.289
retrieving revision 1.290
diff -u -r1.289 -r1.290
--- xdebug/xdebug.c:1.289 Tue Jan 03 20:15:31 2006 GMT
+++ xdebug/xdebug.c Tue Jan 17 19:58:35 2006 GMT
@@ -704,9 +704,14 @@
         /* Initialize start time */
         XG(start_time) = xdebug_get_utime();
 
+ /* Override var_dump with our own function */
         zend_hash_find(EG(function_table), "var_dump", 9, (void **)&orig);
         orig->internal_function.handler = zif_xdebug_var_dump;
 
+ /* Override set_time_limit with our own function to prevent timing out while debugging */
+ zend_hash_find(EG(function_table), "set_time_limit", 15, (void **)&orig);
+ orig->internal_function.handler = zif_xdebug_set_time_limit;
+
         return SUCCESS;
 }
 
@@ -1989,6 +1994,13 @@
 }
 /* }}} */
 
+/* {{{ proto void xdebug_set_time_limit(void)
+ Dummy function to prevent time limit from being set within the script */
+PHP_FUNCTION(xdebug_set_time_limit)
+{
+}
+/* }}} */
+
 /* {{{ proto void xdebug_var_dump(mixed var [, ...] )
    Outputs a fancy string representation of a variable */
 PHP_FUNCTION(xdebug_var_dump)
Received on Tue Jan 17 2006 - 21:58:41 GMT

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