PHP Parse error: syntax error, unexpected '[' in /var/www/htdocs/inc/functions.php on line 239 #29

Closed
opened 2017-01-22 08:28:06 +00:00 by tslocum · 1 comment
tslocum commented 2017-01-22 08:28:06 +00:00 (Migrated from gitlab.com)

Created by: owk444

Hello.

I got this error on the first start. Installation does not works. How it can be fixed?

An error line is:
if (count($resp->getErrorCodes()) == 1 && $resp->getErrorCodes()[0] == 'missing-input-response') {

PHP 5.3.3 (cli) (built: Feb 9 2016 10:21:34)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

php -m

[PHP Modules]
bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
zip
zlib

[Zend Modules]

Thank you

*Created by: owk444* Hello. I got this error on the first start. Installation does not works. How it can be fixed? An error line is: if (count($resp->getErrorCodes()) == 1 && $resp->getErrorCodes()[0] == 'missing-input-response') { PHP 5.3.3 (cli) (built: Feb 9 2016 10:21:34) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies # php -m [PHP Modules] bz2 calendar Core ctype curl date ereg exif fileinfo filter ftp gd gettext gmp hash iconv json libxml mbstring mcrypt mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar readline Reflection session shmop SimpleXML sockets SPL sqlite3 standard tokenizer xml zip zlib [Zend Modules] Thank you
tslocum commented 2017-01-23 19:58:36 +00:00 (Migrated from gitlab.com)

Created by: Wqer555

Post the full error.
Also, upgrade your PHP. 5.3.3 came out 22 July 2010.

*Created by: Wqer555* Post the full error. Also, upgrade your PHP. 5.3.3 came out [22 July 2010](https://secure.php.net/releases/index.php).
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#29
No description provided.