[xdebug-dev] Re: xdebug xdebug/php_xdebug.h xdebug/xdebug.c xdebug/xdebug_handler_dbgp.c xdebug/xdebug_xml.c - Fix returning text nodes that contain html tags and such

From: Derick Rethans <derick[@]xdebug.org>
Date: Wed, 9 Jun 2004 09:18:23 +0200 (CEST)

On Sun, 6 Jun 2004, Shane Caraveo wrote:

> Date: Sun Jun 6 04:03:54 CEST 2004
> User: Shane Caraveo
> Directory: xdebug
>
> Log Message:
> [1.00]
> - Fix returning text nodes that contain html tags and such
> - Fix dbgp proxy support by adding the idekey attribute
> Can also use the XDEBUG_SESSION_START var to set the idekey
> New configuration var, xdebug.idekey

Doesn't this change change the behavior of setting the XDEBUG_CONFIG?
Before the cookie would be set without an IDE key present.

regards,
Derick

@@ -864,9 +893,12 @@
                ) {
                        convert_to_string_ex(dummy);
                        magic_cookie = xdstrdup(Z_STRVAL_PP(dummy));
+ XG(ide_key) = xdstrdup(Z_STRVAL_PP(dummy));
                } else if (getenv("XDEBUG_CONFIG")) {
                        magic_cookie = xdstrdup(getenv("XDEBUG_CONFIG"));
- php_setcookie("XDEBUG_SESSION", sizeof("XDEBUG_SESSION"), magic_cookie, strlen(magic_cookie), time(NULL) + 3600, "/", 1, NULL, 0, 0 COOKIE_ENCODE TSRMLS_CC);
+ if (XG(ide_key) && *XG(ide_key)) {
+ php_setcookie("XDEBUG_SESSION", sizeof("XDEBUG_SESSION"), XG(ide_key), strlen(XG(ide_key)), time(NULL) + 3600, "/", 1, NULL, 0, 0 COOKIE_ENCODE TSRMLS_CC);
+ }
                }
Received on Wed Jun 09 2004 - 09:18:38 BST

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