From:             lhanson at clarifysolutions dot co dot uk
Operating system: windows xp/2000
PHP version:      5.2.3
PHP Bug Type:     CGI related
Bug description:  Short open tags not work in php5.2.0 and not in php5.2.3

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 bug report at http://bugs.php.net/?id=42103&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42103&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42103&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42103&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42103&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42103&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42103&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42103&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42103&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42103&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42103&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42103&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42103&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42103&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42103&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42103&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42103&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42103&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42103&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42103&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42103&r=mysqlcfg

Reply via email to