[php-src] PR #18306: run-tests.php: Remove extra env vars in the generated .sh file
| From: | arnaud-lb | Date: | Fri, 11 Apr 2025 11:44:31 +0000 |
| Subject: | [php-src] PR #18306: run-tests.php: Remove extra env vars in the generated .sh file | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31375@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18306
Author: arnaud-lb
run-tests.php conveniently generates a .sh file for each failed test.
The file starts by setting environment variables to the value they had during the test run.
Unfortunately, sometimes extra env vars will sneak in and prevent reproduction:
- Variables are inherited from the process that executes the .sh file
- The .sh file exports empty variables, but proc_open() does not
- When running under gdb, the variables LINES and COLUMNS
are set