Skip to content

Commit 1ed5a63

Browse files
committed
Check that "tokenizer" extension is available in gen_stub.php
1 parent 271bc68 commit 1ed5a63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,10 @@ function initPhpParser() {
10741074
return;
10751075
}
10761076

1077+
if (!extension_loaded("tokenizer")) {
1078+
throw new Exception("The \"tokenizer\" extension is not available");
1079+
}
1080+
10771081
$isInitialized = true;
10781082
$version = "4.3.0";
10791083
$phpParserDir = __DIR__ . "/PHP-Parser-$version";

0 commit comments

Comments
 (0)