From: Operating system: linux PHP version: Irrelevant Package: Program Execution Bug Type: Feature/Change Request Bug description:configurable shell for exec in linux (not always sh)
Description: ------------ i can understand that you can't use the $SHELL variable, because likely under apache it'll be /sbin/nologin anyway. however, using always sh can be quite irritating when you're trying to make something and install it on a production environment, when finding out that sh is not the shell you're wanting to have. for a while now we've just changed the sh symlink to the shell we want, but now (for this particular machine) we can't workaround like this. you can't always workaround by just putting /bin/shell before your command, especially if you're using shell constructs... interesting would be a exec_shell=/bin/sh variable, which could then be used by the various program execution functions (for me in particular exec) -- Edit bug report at https://bugs.php.net/bug.php?id=61209&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61209&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61209&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61209&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61209&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61209&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61209&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61209&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61209&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61209&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61209&r=support Expected behavior: https://bugs.php.net/fix.php?id=61209&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61209&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61209&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61209&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61209&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61209&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61209&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61209&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61209&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61209&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61209&r=mysqlcfg