1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Use absolute paths in tokenizer_data_gen.php

To make it work with out-of-tree builds.
This commit is contained in:
Nikita Popov
2021-03-17 15:53:33 +01:00
parent 128082c86f
commit e9d78339e7

View File

@@ -1,7 +1,8 @@
<?php
$infile = 'Zend/zend_language_parser.h';
$outfile = 'ext/tokenizer/tokenizer_data.c';
$rootDir = __DIR__ . '/../..';
$infile = $rootDir . '/Zend/zend_language_parser.h';
$outfile = $rootDir . '/ext/tokenizer/tokenizer_data.c';
if (!file_exists($infile)) {
fwrite(STDERR, <<<ERROR