OSDN Git Service

Store post ids during `wp post generate`.
[wvm/wvm.git] / php / boot-fs.php
1 <?php
2
3 // This file needs to parse without error in PHP < 5.3
4
5 if ( 'cli' !== PHP_SAPI ) {
6         echo "Only CLI access.\n";
7         die(-1);
8 }
9
10 if ( version_compare( PHP_VERSION, '5.3.0', '<' ) ) {
11         printf( "Error: WP-CLI requires PHP %s or newer. You are running version %s.\n", '5.3.0', PHP_VERSION );
12         die(-1);
13 }
14
15 define( 'WP_CLI_ROOT', dirname( __DIR__ ) );
16
17 include WP_CLI_ROOT . '/php/wp-cli.php';
18