1
Vote

Out of the box "unexpected T_STRING" on Linux

description

Inmediately after running php MySQLConnector.php I get:

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /var/www/odata/MySQLConnector.php on line 20

I'm running Debian Linux.

comments

bureado wrote May 9, 2012 at 5:45 PM

As an additional information:

PHP 5.2.17-0.dotdeb.0 with Suhosin-Patch 0.9.7 (cli) (built: Jan 7 2011 07:47:48)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

bureado wrote May 9, 2012 at 5:48 PM

As an additional measure, I ran fromdos to all .php files on the bundle (MySQL and PHP producer releases) but it's not related to it.

bureado wrote May 9, 2012 at 5:55 PM

Alright, so it was PHP 5.3 I needed. It's working now on Debian out of the box with:

PHP 5.3.3-7+squeeze8 with Suhosin-Patch (cli) (built: Feb 10 2012 14:12:26)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH