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
Bump PHP version to v5.4 #186
Comments
You can use Why artificially increase the version our software runs on? |
Ah, yeah, but only since v5.4 it "is always available regardless of the short_open_tag ini setting." (source). And as admins should rather have this setting disabled (because the real short open tags are bad practise and potentially confusing), we can only use this with PHP 5.4 or above…
That it is bad practise is only your opinion. I've never read this anywhere else (and please don't confuse it with the real short opening tags, which are indeed bad practise - for technical reasons)… <a href="<?= $link ?>"><?= $text ?></a> is certainly easier to read than if this code would be blown up with |
This is not a personal opinion, Zend (the PHP developers) themselves do advise not to use these as far back as with ZF 1.12: |
Okay, that's a good fact against them… |
But I am stupid. Zend is wrong or outdated (I mean the doc you linked to is clearly outdated), as this whole thing was about PHP 5.4 or higher. To quote myself:
So Zend's argument does not apply. If we use PHP >= 5.4 you can use Any counterargument against requiring PHP 5.4 and using the nice short tags? |
Other features from this release announcement I'd like to use:
|
Here are some (more) arguments for going PHP 5.4 as a minimum:
|
So now we can change |
If it bothers you so much, do it. I personally would not change working code into something less readable just to save those few bytes, though. Our code checkers might complain about it, too. |
It is not less readable. It's much more readable… 😆 |
Reopening to keep track of necessary changes this requires:
|
wiki updated. As for translation files going with |
Continuing #48 what about requiring PHP >=5.4 (currently: 5.3). This would allow us to use
<?=
, which would make our templates much easier to read…Just my two cents… Maybe there are other advantages.
The text was updated successfully, but these errors were encountered: