mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Check that "tokenizer" extension is available in gen_stub.php
This commit is contained in:
parent
271bc689ea
commit
1ed5a63c86
1 changed files with 4 additions and 0 deletions
|
@ -1074,6 +1074,10 @@ function initPhpParser() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!extension_loaded("tokenizer")) {
|
||||
throw new Exception("The \"tokenizer\" extension is not available");
|
||||
}
|
||||
|
||||
$isInitialized = true;
|
||||
$version = "4.3.0";
|
||||
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue