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

Problem on Static #78

Closed
AlenmKing opened this issue Nov 27, 2012 · 3 comments
Closed

Problem on Static #78

AlenmKing opened this issue Nov 27, 2012 · 3 comments
Assignees
Milestone

Comments

@AlenmKing
Copy link

Hi
I want to user idiorm on PHP Server version 5.2.17 and i just got this error. what do you think?

Parse error: syntax error, unexpected T_STATIC in /home/emitsite/public_html/lib/idiorm.php on line 1420

@treffynnon
Copy link
Collaborator

Yes. It is using a feature of PHP 5.3 on that line. I must have missed that. For now you can replace line 1420 with:

return self::value($subject)->replace_outside_quotes($search, $replace);

@ghost ghost assigned treffynnon Nov 27, 2012
@treffynnon
Copy link
Collaborator

Also it is worth noting that as of version 1.4.0 Idiorm and Paris will no longer maintain PHP 5.2 compatibility. This is for two reasons:

It is for these reasons that 1.3.0 will be the last release you will be able to run on your current PHP version.

Please consider upgrading if it is at all possible.

@AlenmKing
Copy link
Author

Thanks for your attention.
And about the upgrade you are right, But my app is running on a shared host that use PHP 5.2.17.
Many of hosts around the world use PHP 5.2 as their main scripting language.

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