FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » A curious thing...about tags.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: A curious thing...about tags. [message #182244 is a reply to message #182243] Tue, 23 July 2013 10:22 Go to previous messageGo to previous message
Norman Peelman is currently offline  Norman Peelman
Messages: 126
Registered: September 2010
Karma:
Senior Member
On 07/23/2013 05:40 AM, Denis McMahon wrote:
> On Mon, 22 Jul 2013 19:52:14 -0400, Norman Peelman wrote:
>
>> It's not hanging, but waiting for proper EOF. But also probably needs
>> proper starting and ending tags as well.
>
>> <?php echo "?> something <?";
>> ?>
>> CTRL-D (or Z maybe)
>
> Not in my setup:
>
> Starting at a command shell, the only things I type are the following 3
> lines:
>
> php -a
> echo "this";
> exit
>
> What appears on my console are the following 7 lines:
>
> $ php -a
> Interactive shell
>
> php > echo "this";
> this
> php > exit
> $
>

Dennis,

You and I have the 'Interactive *SHELL*' and that is the way it is
supposed to work. 'Interactive *MODE* is something different. You can't
pick which one you use at the terminal.

http://php.net/manual/en/features.commandline.interactive.php


"Interactive *MODE* is essentially like running php with stdin as the
file input. You just type code, and when you're done (Ctrl-D), php
executes whatever you typed as if it were a normal PHP (PHTML) file -
hence you start in interactive *mode* with '<?php' in order to execute
code."

http://www.php.net/manual/en/features.commandline.interactive.php#108006

https://bugs.php.net/bug.php?id=60683
It's not a bug, read the history down to the bottom.


--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Paypal IPN and HTTP 1.1
Next Topic: Query with PHP and MySql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Sep 16 18:50:46 GMT 2024

Total time taken to generate the page: 0.08014 seconds