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 | |
/** | |
* PHP 5.4 Short Array Syntax Converter | |
* | |
* Command-line script to convert PHP's "array()" syntax to PHP 5.4's | |
* short array syntax "[]" using PHP's built-in tokenizer. | |
* | |
* This script is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public |
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 | |
/** | |
* for cygwin: | |
* set CYGWIN=nodosfilewarning | |
*/ | |
if (PHP_SAPI != 'cli') { | |
exit; | |
} |
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 | |
/** | |
* Matches | |
* XXX.XXX.XXX.XXX | |
* XXX.XXX.XXX.XXX-ZZZ | |
* XXX.XXX.XXX.XXX-XXX.XXX.XXX.ZZZ | |
* | |
* | |
* @param string $range | |
* @param string $ip |