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

Initialize fork of a library and changes for compatibility with php52 #1

Merged
merged 2 commits into from
Mar 28, 2017

Conversation

JellyBellyDev
Copy link
Member

  • Initialize fork of a official library

  • changes for compatibility with php52

(new \Raven_Client(SENTRY_DSN))
->setAppPath(__DIR__)
$sentryClient = new Raven_Client(SENTRY_DSN);
$__DIR__ = version_compare(PHP_VERSION, '5.3.0', '>=') ? __DIR__ : dirname(__FILE__);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe, because dirname is defined in all php versions, you can use it always, without checking the PHP_VERSION const

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right!


class Helper_Php52
{
public static $__DIR__ = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better if not public, you also have the getter

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

Copy link
Member

@mariettiell mariettiell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JellyBellyDev JellyBellyDev merged commit 6837efc into master Mar 28, 2017
@JellyBellyDev JellyBellyDev deleted the enhancement/compatibility-5.2 branch March 28, 2017 14:54
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

Successfully merging this pull request may close these issues.

2 participants