From: Operating system: ALL PHP version: Irrelevant Package: CGI related Bug Type: Feature/Change Request Bug description:add execute shell-command directly feature
Description: ------------ dear,all. I think if php-cli mode can support nested shell-script directly. it must be awsome. #!/usr/bin/env php <?php /*php code */ ?> source abc.sh if we can treat "source abc.sh" as a shell-script and execute it. it will be awsome. do you agree with me ? although we can execute php-script in sh-file like this #!/bin/bash php php-file.php source abc.sh it's ungly,i think .we have to test it when we move it to another envioument. Embeded shell-script code likes php nested in html-file , I think it will be a good feature. Test script: --------------- #!/usr/bin/env php <?php /*php code */ ?> source abc.sh -- Edit bug report at http://bugs.php.net/bug.php?id=52824&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52824&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52824&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52824&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52824&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52824&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52824&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52824&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52824&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52824&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52824&r=support Expected behavior: http://bugs.php.net/fix.php?id=52824&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52824&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52824&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52824&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52824&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52824&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52824&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52824&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52824&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52824&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52824&r=mysqlcfg