php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42212 syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VAR
Submitted: 2007-08-05 16:17 UTC Modified: 2007-08-05 18:37 UTC
From: roberto at spadim dot com dot br Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.4RC1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roberto at spadim dot com dot br
New email:
PHP Version: OS:

 

 [2007-08-05 16:17 UTC] roberto at spadim dot com dot br
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 />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-05 16:20 UTC] roberto at spadim dot com dot br
get source at:
www.spadim.com.br/source.php.txt
 [2007-08-05 16:58 UTC] jani@php.net
The extracted piece of code has no parse error in it. 
And the url you posted is not accessible. If there really was some bug here, we'd really know about it anyway, there's no way something like this could have passed all regression tests..
 [2007-08-05 18:06 UTC] roberto at spadim dot com dot br
i put the script again at http
http://www.spadim.com.br/source.php.txt
 [2007-08-05 18:27 UTC] mattias at secweb dot se
This is NOT a bug in PHP.

Check line 698,1
 [2007-08-05 18:37 UTC] roberto at spadim dot com dot br
thanks :) the problem: "`" 698,1
how you found it? 
searching the code, or a program that parse the script and show open and close of tags like {} `` "" '' () [] ? 
if it's a program, what's the name and where can i get it?

thanks guys, the bug is bogus, and i'm waiting your reply about how to find parse problems.
please close it after reply, parse is running ok now
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC