Re: cvs: php4 /sapi/cli php_cli.c
| From: | Markus Fischer | Date: | Sat, 09 Mar 2002 18:04:24 +0000 |
| Subject: | Re: cvs: php4 /sapi/cli php_cli.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-9854@lists.php.net to get a copy of this message | ||
On Sat, Mar 09, 2002 at 06:58:10PM +0100, Sander Roobol wrote :
> On 2002.03.09 18:05 Markus Fischer wrote:
> > 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.
Of course (somehow), but it gave me a high enough WTF factor
to complain.
> 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).
I like that idea.
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc