-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return early when the timezone info is NULL.
The guess_timezone function does throw an error, but throwing an error doesn't immediate make the PHP_FUNCTION return. This check is really only necessary for distributions that patch PHP's timelib to use system tzdata, but not correct enough to account for their implementation to guarantee to return a timezone.
- Loading branch information
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters