[xdebug-dev] xdebug xdebug/xdebug.c xdebug/php_xdebug.h - Added request #88: Make the url parameter XDEBUG_SESSION_START optional. So

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Wed, 15 Sep 2004 09:53:46 +0200

Date: Wed Sep 15 09:53:46 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Added request #88: Make the url parameter XDEBUG_SESSION_START optional. So
  it can be disabled and the user does not need to add it.
#- This new php.ini setting is xdebug.remote_autostart

Modified files:
           xdebug/xdebug.c (version: 1.235)
           xdebug/php_xdebug.h (version: 1.78)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.234
retrieving revision 1.235
diff -u -r1.234 -r1.235
--- xdebug/xdebug.c:1.234 Mon Aug 23 04:32:14 2004 GMT
+++ xdebug/xdebug.c Wed Sep 15 05:53:46 2004 GMT
@@ -285,6 +285,7 @@
 #else
         STD_PHP_INI_ENTRY("xdebug.remote_port", "9000", PHP_INI_ALL, OnUpdateLong, remote_port, zend_xdebug_globals, xdebug_globals)
 #endif
+ STD_PHP_INI_BOOLEAN("xdebug.remote_autostart","0", PHP_INI_ALL, OnUpdateBool, remote_autostart, zend_xdebug_globals, xdebug_globals)
         PHP_INI_ENTRY("xdebug.allowed_clients", "", PHP_INI_SYSTEM, OnUpdateAllowedClients)
         PHP_INI_ENTRY("xdebug.idekey", "", PHP_INI_ALL, OnUpdateIDEKey)
 PHP_INI_END()
@@ -969,7 +970,7 @@
 
                 /* Start remote context if requested */
                 if (
- magic_cookie &&
+ (magic_cookie || XG(remote_autostart)) &&
                         !XG(remote_enabled) &&
                         XG(remote_enable) &&
                         (XG(remote_mode) == XDEBUG_REQ)

[FILE: /xdebug/php_xdebug.h]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- xdebug/php_xdebug.h:1.77 Mon Aug 09 04:27:58 2004 GMT
+++ xdebug/php_xdebug.h Wed Sep 15 05:53:46 2004 GMT
@@ -141,6 +141,7 @@
         char *remote_host; /* localhost */
         int remote_mode; /* XDEBUG_NONE, XDEBUG_JIT, XDEBUG_REQ */
         char *remote_handler; /* php3, gdb, dbgp */
+ zend_bool remote_autostart; /* Disables the requirement for XDEBUG_SESSION_START */
 
         char *ide_key; /* from environment, USER, USERNAME or empty */
 
Received on Wed Sep 15 2004 - 09:53:57 BST

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