ID:               42103
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lhanson at clarifysolutions dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: windows xp/2000
 PHP Version:      5.2.3
 New Comment:

They work just fine here. Check your php.ini settings and that it's
actually been read by PHP. You can check it in phpinfo() section where
it says what, if any, php.ini was actually loaded. 


Previous Comments:
------------------------------------------------------------------------

[2007-07-25 13:34:37] lhanson at clarifysolutions dot co dot uk

Description:
------------
It appears that there is a problem when attempting execute a script
from the command line. If the script has Short open tags "<?" instead of
"<?php" php.exe does not seem to recognise that we are starting php
code. 

I tried to tell php.exe to use a specific ini file (with the -c switch)
that had open short tags enabled. However no avail. It also took me
quite a long time to realise that it was the tags that was causing me
the issue. 

I am wondering what the reasons would be for removing the acceptance of
short tags from the command line interface... 

If you have any answers on this please do get in contact 

Reproduce code:
---------------
<?
$i = 10
 echo 'im being displayed in the cli. i = '.$i
?>

Expected result:
----------------
im being displayed in the cli. i = 10


Actual result:
--------------
<?
$i = 10
 echo 'im being displayed in the cli. i = '.$i
?>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42103&edit=1

Reply via email to