Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Parse error #1

Closed
glotech opened this issue Jun 12, 2012 · 2 comments
Closed

PHP Parse error #1

glotech opened this issue Jun 12, 2012 · 2 comments

Comments

@glotech
Copy link

glotech commented Jun 12, 2012

Hi Colin,
I'm receiving the following error:
PHP Parse error: syntax error, unexpected ':' in /.modman/Cm_RedisSession/code/Model/Session.php on line 53
Note that I've deleted my full path and replaced with .

This is running two Redis instances with session instance on port 6380. I've changed the port value on line 54 of above file but can't see a need to change anything on line 53.

Can you provide any hints as to what's wrong please?

@colinmollenhour
Copy link
Owner

Line 53 contains the "?:" ternary shorthand operator that was introduced in PHP 5.3.. So you need to either upgrade or change the lines that use the ?: operator. PHP 5.3 is over 2 years old so I don't really have an interest in supporting any version older than 5.3.

@glotech
Copy link
Author

glotech commented Jun 18, 2012

Thanks Colin, ironically we upgraded PHP the day after my post above. Appreciate your time in responding though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants