blackfireio / php-sdk

The Blackfire PHP SDK
https://blackfire.io
MIT License
150 stars 22 forks source link

PHP 5.3 compatibility #41

Closed telemmaite closed 5 years ago

telemmaite commented 5 years ago

Guys you should fix the PHP 5.3 compatibility of the SDK.

https://blackfire.io/docs/reference-guide/php-sdk

The Client works with PHP 5.3+.

https://github.com/blackfireio/php-sdk/blob/master/composer.json#L13 https://github.com/blackfireio/php-sdk/blob/master/src/Blackfire/Client.php#L117

Looks like nobody noticed since this commit which does only 50% of the job. https://github.com/blackfireio/php-sdk/commit/dcc3c9ba0ca99d77cba0295ba3f9d4acd6be1c1d

It also misses here: https://github.com/blackfireio/php-sdk/blob/dcc3c9ba0ca99d77cba0295ba3f9d4acd6be1c1d/src/Blackfire/Client.php#L125

romainneutron commented 5 years ago

Hello, The SDK is compatible with PHP 5.3. Please point actual issues. If you experience a bug on PHP 5.3, please write a bug report.

Thanks,

marcw commented 5 years ago

Hi @telemmaite,

Thanks for reporting this issue. It is being fixed by #42.

Please remember that this is an open-source project and that you can contribute to it. Also, please remember that issues written in a passive-aggressive tone always take a toll on maintainers.

telemmaite commented 4 years ago

I think you have missed one. https://github.com/blackfireio/php-sdk/blob/master/src/Blackfire/Client.php#L145

145:  public function closeScenario(Scenario $scenario, array $errors = [])
romainneutron commented 4 years ago

@telemmaite are you using the SDK with PHP 5.3?

romainneutron commented 4 years ago

I think you have missed one. https://github.com/blackfireio/php-sdk/blob/master/src/Blackfire/Client.php#L145

145:  public function closeScenario(Scenario $scenario, array $errors = [])

Fixed as of https://github.com/blackfireio/php-sdk/commit/27ac842a26a9babb955214385787a7c60430160d

romainneutron commented 4 years ago

Released as of https://github.com/blackfireio/php-sdk/releases/tag/v1.19.2

telemmaite commented 4 years ago

@telemmaite are you using the SDK with PHP 5.3?

Yes we are, thank you for the quick fix.