Re: cvs: php4 /sapi/cli php_cli.c
| From: | Sander Roobol | Date: | Sat, 09 Mar 2002 17:58:10 +0000 |
| Subject: | Re: cvs: php4 /sapi/cli php_cli.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-9853@lists.php.net to get a copy of this message | ||
On 2002.03.09 18:05 Markus Fischer wrote:
There's no reason to require <?php-open-tags, especially not since most input will be either dynamic or especially written for this. If we do want to require open-tags, make another option for it (e.g. -R).Contrary to what everywhere else is expected, the code being executed with the -r switch must not be enclosed in '<?' and '?>' tags. This means I can't run existing PHP code this way:php -r "cat script.php"because basically every PHP script starts with '<?'. Expected behaviour? I mean, does it make sense ? Yes. Your example doesn't make sense because it will completely mess up with the quotes, and we have -f.
If so, it should be also clearly documented in the command
line help.
Agreed.
Sander