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

Make it work on PHP 5.5 or provide work-around? #146

Closed
OscarEriksen opened this issue Jun 17, 2016 · 2 comments
Closed

Make it work on PHP 5.5 or provide work-around? #146

OscarEriksen opened this issue Jun 17, 2016 · 2 comments
Labels

Comments

@OscarEriksen
Copy link

Hi,

We can't update our server platform right now but are in immediate need to track events in the backend. We run PHP 5.5 on an IIS-platform.

My main question is: how can we and/or you fix this and create a work around?

Version info

  • intercom-php version: 2.0.0
  • PHP version: 5.5

Expected behavior

  • It should work and not give an error message.

Actual behavior

Halts with PHP error:
Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in C:\inetpub\yyy\vendor\intercom\intercom-php\src\IntercomClient.php on line 7

Steps to reproduce

  1. Use PHP 5.5
  2. Follow the intended installation with composer and usage
  3. Look at the error message
@bobjflong bobjflong added the dev label Jun 17, 2016
@xewl
Copy link

xewl commented Jun 21, 2016

Idem on nginx & PHP Version 5.5.9-1ubuntu4.17

The use function on line 7 in IntercomClient is not compatible.
Shouldn't there be a way to call the stream_for function otherwise?

Update: Added pull-request #147 to the method explained on the Guzzle Psr7 readme page

@dannyfallon
Copy link
Contributor

Hi there 👋 As per Bob's comment on a PR adding support for PHP 5.5 we've taken the decision to not do this because PHP 5.5 is no longer officially support and is End of Life since July 10th. There are other third party, community supported libraries such as https://packagist.org/packages/gayanhewa/intercom-php that allow the use of older PHP versions with Intercom.

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

No branches or pull requests

4 participants