This file contains hidden or 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 | |
final class SafeCast | |
{ | |
/** | |
* Converts the given variable to an integer. | |
* | |
* Allowed types are int, float and string. | |
* | |
* - int values are returned as is; |
This file contains hidden or 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 | |
/** | |
* Generates a php.ini file from runtime ini directives, excluding extensions incompatible with JIT. | |
* I did not find a way to disable an extension from the command line, so this script is a workaround. | |
* | |
* Use it this way: | |
* | |
* php generate-jit-php-ini.php > php.ini | |
* php -n -c php.ini |
OlderNewer