1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00
PHP-Parser/lib/bootstrap.php
nikic b42c9209c7 Fix PHP 5.2 build failure
lcfirst() isn't defined on PHP 5.2, so I added a fallback function, which
is defined in the bootstrap.php. Not sure whether that's the right place
to put it.
2012-04-23 22:17:06 +02:00

14 lines
322 B
PHP

<?php
require dirname(__FILE__) . '/PHPParser/Autoloader.php';
PHPParser_Autoloader::register();
/*
* lcfirst() was added in PHP 5.3, so we have to emulate it for PHP 5.3.
*/
if (!function_exists('lcfirst')) {
function lcfirst($string) {
$string[0] = strtolower($string[0]);
return $string;
}
}