Last active
August 29, 2015 13:57
-
-
Save hax/9479075 to your computer and use it in GitHub Desktop.
typehint bug of Intl extension in PHP 5.5
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
<?php | |
$f = new ReflectionFunction('intltz_from_date_time_zone'); | |
var_dump($f->getParameters()[0]->getClass()); // cause ReflectionException in PHP 5.5 | |
/* | |
run `php --rf intltz_from_date_time_zone` => | |
Function [ <internal:intl> function intltz_from_date_time_zone ] { | |
- Parameters [1] { | |
Parameter #0 [ <required> IntlDateTimeZone $dateTimeZone ] | |
} | |
} | |
The problem is: `IntlDateTimeZone` should be `DateTimeZone` | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://bugs.php.net/bug.php?id=66921