From: santi at mola dot io Operating system: Linux PHP version: Irrelevant Package: Testing related Bug Type: Feature/Change Request Bug description:use exec in sh files generated by run-test.php
Description: ------------ I often use gdb to debug a failed phpt tests, usually by editing the generated .sh file and prepending "gdb --args" to the command. It is also possible to run gdb directly on the .sh file (setting follow-fork-mode child) but it is less convenient, and also problematic if the test itself forks. This can be solved by just running the test command with "exec". AFAIK this should be inocuous for regular test running, but quite convenient when running gdb. Test script: --------------- gdb --args bash tests/failing_tests.phpt Expected result: ---------------- gdb running normally Actual result: -------------- gdb debugging the parent bash process instead (by default) -- Edit bug report at https://bugs.php.net/bug.php?id=79913&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79913&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79913&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79913&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79913&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79913&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79913&r=support Expected behavior: https://bugs.php.net/fix.php?id=79913&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79913&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79913&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79913&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79913&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79913&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79913&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79913&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79913&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79913&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79913&r=mysqlcfg