From: roberto at spadim dot com dot br
Operating system: linux
PHP version: 5.2.4RC1
PHP Bug Type: Unknown/Other Function
Bug description: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VAR
Description:
------------
i will put my source file after
but what happen:
<b>Parse error</b>: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
<b>/home/apache/172.16.0.1/rdm-business/app/industria/pde/s.-1.rastro.movimenta.spadim</b>
on line <b>718</b><br />
checking line 718:
$SQL= "SELECT COUNT(*) FROM est_mov ".
"WHERE ".
"unidade_id=$pde_unidade_id AND ".
"oe_tipo='rp-tr' AND oe=$OT AND ".
"oe_seq=$OT_SEQ AND ".
"item_id=$P[0] AND ".
"item_id_red=$P[1] AND ".
"lote_tipo='$spa_tipo' AND ".
=> "mov_id=\"". $ARRAY_CONTROLE[ 'codigo_barra' ] ."\" AND ".
"lote_spa=$spa_lote";
if i run this code in a new php file with only this lines everything go
ok, but in my file with others functions don't
i'm wrong? i was using php 5.2.1 on another server and the script run ok,
is it a php.ini problem?
Reproduce code:
---------------
i will put a file with contents
Expected result:
----------------
no problems just execute
Actual result:
--------------
<b>Parse error</b>: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
<b>/home/apache/172.16.0.1/rdm-business/app/industria/pde/s.-1.rastro.movimenta.spadim</b>
on line <b>718</b><br />
--
Edit bug report at http://bugs.php.net/?id=42212&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42212&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42212&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42212&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42212&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42212&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42212&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42212&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42212&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42212&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42212&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42212&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42212&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42212&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42212&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42212&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42212&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42212&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42212&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42212&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42212&r=mysqlcfg