Upgrade to 4.8 results in PHP syntax error

12 views
Skip to first unread message

ministe...@gmail.com

unread,
May 19, 2017, 11:32:39 AM5/19/17
to Reason Discussion
So I just upgraded our development server from Reason 4.7 to 4.8.  I did a merge from GIT and then corrected two minor conflicts (dbs.xml and error_handler_settings.php).  However, when I try to pull up /reason/upgrade.php (or any php file on the site for that matter) I get a parse error from what appears to be newly added code for 4.8:

Parse error: syntax error, unexpected '[' in /var/reason/reason_package/vendor/guzzlehttp/psr7/src/functions.php on line 77

Has anyone seen this issue before?  Is there something I missed?

Aaron

ministe...@gmail.com

unread,
May 19, 2017, 11:38:01 AM5/19/17
to Reason Discussion
Never Mind.  Turns out this server is rather long in the tooth and has PHP 5.3.  The All Mighty Google Oracle says that guzzlehttp uses a type of array syntax that causes parse errors in PHP 5.3.  Well, a server upgrade was on the list anyway so....:)

tbr...@carleton.edu

unread,
May 19, 2017, 4:10:04 PM5/19/17
to Reason Discussion
The main dependency that is pulling in guzzle is aws-sdk-php. That library requires >= PHP 5.5. I think reason say that is works with PHP 5.3 and greater so we should probably up the minimum version to PHP 5.5

Tom

ministe...@gmail.com

unread,
May 19, 2017, 4:13:14 PM5/19/17
to Reason Discussion
Is there a "maximum" version of PHP that Reason will work with? I'm probably going to migrate things to an Ubuntu 16.04 LTS server which has PHP 7.0.

Matt Ryan

unread,
May 19, 2017, 4:15:15 PM5/19/17
to reason-discussion
Reason depends on the mysql library, which is removed in 7.0. So the maximum version at present is 5.6.

--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reason-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to reason-discussion@googlegroups.com.
Visit this group at https://groups.google.com/group/reason-discussion.
For more options, visit https://groups.google.com/d/optout.

Tom Brice

unread,
May 19, 2017, 4:15:52 PM5/19/17
to Reason Discussion
Reason will not work with php7 because it uses the deprecated mysql extension (http://php.net/manual/en/intro.mysql.php) that has been removed from php7

Tom Brice
Senior Web Application Developer
Carleton College | (507)222-7175

On Fri, May 19, 2017 at 3:13 PM, <ministe...@gmail.com> wrote:

--

ministe...@gmail.com

unread,
May 19, 2017, 4:36:15 PM5/19/17
to Reason Discussion
Well.  That's....troublesome.  Thanks for the heads up though, I'll look at getting an older version of PHP on there.


On Friday, May 19, 2017 at 4:15:52 PM UTC-4, Tom Brice wrote:
Reason will not work with php7 because it uses the deprecated mysql extension (http://php.net/manual/en/intro.mysql.php) that has been removed from php7

Tom Brice
Senior Web Application Developer
Carleton College | (507)222-7175

On Fri, May 19, 2017 at 3:13 PM, <ministe...@gmail.com> wrote:
Is there a "maximum" version of PHP that Reason will work with? I'm probably going to migrate things to an Ubuntu 16.04 LTS server which has PHP 7.0.


On Friday, May 19, 2017 at 4:10:04 PM UTC-4, tbr...@carleton.edu wrote:
The main dependency that is pulling in guzzle is aws-sdk-php. That library requires >= PHP 5.5. I think reason say that is works with PHP 5.3 and greater so we should probably up the minimum version to PHP 5.5

Tom

On Friday, May 19, 2017 at 10:38:01 AM UTC-5, Aaron Smith wrote:
Never Mind.  Turns out this server is rather long in the tooth and has PHP 5.3.  The All Mighty Google Oracle says that guzzlehttp uses a type of array syntax that causes parse errors in PHP 5.3.  Well, a server upgrade was on the list anyway so....:)

On Friday, May 19, 2017 at 11:32:39 AM UTC-4, Aaron Smith wrote:
So I just upgraded our development server from Reason 4.7 to 4.8.  I did a merge from GIT and then corrected two minor conflicts (dbs.xml and error_handler_settings.php).  However, when I try to pull up /reason/upgrade.php (or any php file on the site for that matter) I get a parse error from what appears to be newly added code for 4.8:

Parse error: syntax error, unexpected '[' in /var/reason/reason_package/vendor/guzzlehttp/psr7/src/functions.php on line 77

Has anyone seen this issue before?  Is there something I missed?

Aaron

--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reason-discuss...@googlegroups.com.
To post to this group, send email to reason-d...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages