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

Change __DIR__ to dirname(__FILE__) in order to works with PHP 5.2.4... #3

Merged
merged 1 commit into from May 4, 2012

Conversation

rogeriopradoj
Copy link
Contributor

...+

The magic constant __DIR__ was added in PHP 5.3.0, as said here: http://php.net/manual/en/language.constants.predefined.php

@rogeriopradoj
Copy link
Contributor Author

@edmundask do you think it's useful, or you prefer to update the requirements of this spark to PHP 5.3+?

I say that because in INSTALLATION & REQUIREMENTS at the DOCS it's PHP 5.2.4+.

In my opinion the best choice should be maintain the 5.2.4+, because either CodeIgniter and Twig support that, ok?

@edmundask
Copy link
Owner

Sorry, I didn't have time to reply. Yes, this seems to make sense. I actually wasn't aware of the fact that __DIR__ constant is only defined in PHP 5.3+. Thanks.

edmundask added a commit that referenced this pull request May 4, 2012
Change __DIR__ to dirname(__FILE__) to avoid compatibility issues with PHP 5.2.4 and older versions.
@edmundask edmundask merged commit be56859 into edmundask:master May 4, 2012
@rogeriopradoj
Copy link
Contributor Author

Thanks, man!

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.

None yet

2 participants