Re: cvs: php4 /sapi/cli php_cli.c

From: Date: Sat, 09 Mar 2002 17:05:35 +0000
Subject: Re: cvs: php4 /sapi/cli php_cli.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9852@lists.php.net to get a copy of this message
On Fri, Mar 08, 2002 at 09:47:55AM -0000, Edin Kadribasic wrote : > edink Fri Mar 8 04:47:55 2002 EDT > > Modified files: > /php4/sapi/cli php_cli.c > Log: > @- Added -r option to the CLI version of PHP which executes a piece of PHP > @ code directly from the commmand line. (Edin) 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 ? If so, it should be also clearly documented in the command line help. -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

« previous php.cvs (#9852) next »