[php-src] PR #18305: run-tests.php: Save STDIN section into a file
| From: | arnaud-lb | Date: | Fri, 11 Apr 2025 11:34:47 +0000 |
| Subject: | [php-src] PR #18305: run-tests.php: Save STDIN section into a file | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31374@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18305
Author: arnaud-lb
When a test has an
--STDIN-- or --PHPDBG-- section, save the
section's content into a file, like we do for the other sections.
This makes it bit easier to reproduce these tests outside of run-tests.php.
This doesn't update the .sh file to pass the file as stdin to the program, yet.
When using gdb, we can pass the file as stdin like this:
```
gdb --args php
(gdb) r test.php < test.stdin
```