xdebug-handler icon indicating copy to clipboard operation
xdebug-handler copied to clipboard

Robustness of the persistent option

Open lstrojny opened this issue 2 years ago • 2 comments

When the persistent mode is used but PHP_INI_SCAN_DIR is ignored by the target binary, xdebug-handler will not notice that it didn't succeed. I am wondering if xdebug-handler should somehow detect that there was a problem.

See https://github.com/NixOS/nixpkgs/pull/221845 for a case where that happened because of the specific way nix packages PHP.

lstrojny avatar Mar 18 '23 12:03 lstrojny

Why does the binary ignore PHP_INI_SCAN_DIR?

johnstevenson avatar Mar 19 '23 21:03 johnstevenson

@johnstevenson frankly, it looks like a bug to me. That’s also why the issue here is more of a question than an actual issue report. I was wondering if xdebug-handler should be hardened to detect such an environment.

lstrojny avatar Mar 19 '23 21:03 lstrojny