-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix remaining skipped tests #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -447,6 +447,7 @@ static zval *get_client_discovery_address(char **header) | |
| xdfree(header_name); | ||
| } | ||
|
|
||
| xdebug_arg_dtor(headers); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Includes some fixes to memory leaks found by USBAN. These had not been seen before because the tests that run this code were skipped |
||
| return NULL; | ||
| } | ||
|
|
||
|
|
@@ -481,13 +482,19 @@ static void xdebug_init_normal_debugger(xdebug_str *connection_attempts) | |
| remote_addr = get_client_discovery_address(&header); | ||
|
|
||
| if (remote_addr && strstr(Z_STRVAL_P(remote_addr), "://")) { | ||
| header = NULL; | ||
| if (header) { | ||
| xdfree(header); | ||
| header = NULL; | ||
| } | ||
| xdebug_log_ex(XLOG_CHAN_DEBUG, XLOG_WARN, "INVADDR", "Invalid remote address provided containing URI spec '%s'.", Z_STRVAL_P(remote_addr)); | ||
|
|
||
| remote_addr = NULL; | ||
| } | ||
|
|
||
| if (!remote_addr) { | ||
| if (header) { | ||
| xdfree(header); | ||
| } | ||
| xdebug_str_add_fmt(connection_attempts, "%s:%ld (fallback through xdebug.client_host/xdebug.client_port)", XINI_DBG(client_host), XINI_DBG(client_port)); | ||
| xdebug_log_ex(XLOG_CHAN_DEBUG, XLOG_WARN, "HDR", "Could not discover client host through HTTP headers, connecting to configured address/port: %s:%ld.", XINI_DBG(client_host), (long int) XINI_DBG(client_port)); | ||
|
|
||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After removing the tests that targeted versions lower than 8.2 we sometimes were left with versions of the tests which targeted all the versions that we handle. In that case it does not make sense to name them with a specific version, so I renamed them |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ Test for bug #790: Debugging with > PHP 5.4 and stderr/stdout doesn't work [1] | |
| <?php | ||
| require __DIR__ . '/../utils.inc'; | ||
| check_reqs('dbgp'); | ||
| if (is_stripped_debugger()) die('skip Known issue in stripped build'); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug fixed by the change in the error callback |
||
| ?> | ||
| --FILE-- | ||
| <?php | ||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an important bug, we had removed calling the existing php error handler and this resulted in several issues