-
Notifications
You must be signed in to change notification settings - Fork 297
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
PHP: ensure 5.3 compatibility #271
Conversation
You forgot L949. But other than that everything seems to be working with PHP 5.3.3. |
Actually, I think a couple methods can also be simplified and covered by tests:
Some comments are outdated, too, there are references to 5.1.x compatibility Working on it! :) |
7a02c95
to
e3b48b3
Compare
@ArthurHoaro I've done some additional edits and cleanup, could you confirm it works with a 5.3.x version? |
$continents_html.='<option value="'.$continent.'"'.($pcontinent==$continent?' selected':'').'>'.$continent.'</option>'; | ||
} | ||
|
||
$cities_html = $cities[$pcontinent]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$citites_html
is never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kenavo, $cities_html :)
Aside from my minor comments, everything seems to be working with PHP 5.3.3 and unit tests are OK. Great job! |
Thanks for reviewing! |
Perfect. Also, remind to update README. |
6bc288e
to
1464542
Compare
Comments taken into account, here are the more significant changes since the last proposed PR:
|
7ab6c25
to
12df6c6
Compare
} | ||
|
||
$tz = $continent.'/'.$city; | ||
if (in_array($tz, timezone_identifiers_list())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a bit picky, but you can just return in_array
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I'll re-submit :)
Great job! I'll make a final test in 5.3 and we can merge this. :) |
Relates to shaarli#250 Modifications - supported version - bump required version from 5.1.0 to 5.3.x - update README - add PHP 5.3 to Travis environments - rewrite array declarations: explicitely use array() instead of [] - move checkPHPVersion to application/Utils.php - move timezone functions to application/TimeZone.php - cleanup code - improve test coverage Signed-off-by: VirtualTam <virtualtam@flibidi.net>
PHP: ensure 5.3 compatibility
Thanks for testing :) |
Relates to #250
Modifications