bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

backtics operator in PHP is not recognised as string delimiter


From: Alexander Lelyakin
Subject: backtics operator in PHP is not recognised as string delimiter
Date: Mon, 21 Jun 2010 19:01:06 +0200

Hello all!

Such an _expression_ in PHP code:
------------------
`ls ~/*`
-----------------
produces an error in gtags-parser: unexpected end of comment.

What did You do:
---------------
echo '<?php echo `ls ~/*`; ?>' >test.php
gtags
--------------

What did you expect from it?
---------------
No output and some non-empty files GPATH  GRTAGS  GSYMS  GTAGS

What was occured? (as is)
--------------------
gtags-parser: unexpected end of comment.
gtags: command failed in xargs_read().
------------------

I use GNU GLOBAL 5.7.1 from Ubuntu 10.4

Of course, replacement of  back-ticks to 'shell_exec' function solves the problem,
but I think that as long the back-tick operator is still supported in PHP it should be supported in gtags-parser also.

--
Alexander Lelyakin
Institut für Kern- und Energietechnik
Forschungszentrum Karlsruhe GmbH

Email: address@hidden
Phone: +49(7247)824101
Fax  : +49(7247)824777

reply via email to

[Prev in Thread] Current Thread [Next in Thread]