[php-src] Issue #13287: checking for re2c

From: Date: Wed, 31 Jan 2024 15:06:07 +0000
Subject: [php-src] Issue #13287: checking for re2c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246375@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13287 Author: SVGAnimate ### Description ## 1) Setup The following code: ```console user@desktop:~/$ git clone https://github.com/php/php-src.git && cd php-src user@desktop:~/php-src$ ./configure ``` Resulted in this output: ```console ... checking for bison... bison checking for bison version... 3.0.4 (ok) checking for re2c... re2c checking for re2c version... configure: re2c 1.0.1 (too old) ... ``` But I expected this output instead: ```console ... checking whether to use bison... no checking whether to use re2c... no ... ``` ## 2) Update The following code: ```console user@desktop:~/php-src$ touch Zend/zend_language_scanner.l user@desktop:~/php-src$ ./configure ``` Resulted in this output: ```console ... checking for bison... bison checking for bison version... 3.0.4 (ok) checking for re2c... re2c checking for re2c version... configure: re2c 1.0.1 (too old) ... ``` But I expected this output instead: ```console ... checking whether to use bison... yes checking for bison... ok checking whether to use re2c... yes checking for re2c... 1.0.1 (too old) ... ``` ## 3) Backward compatibility maybe a typo ? https://github.com/php/php-src/pull/13112 > but re2c 3.0 is also accepted, thus it should be The lexer seems to be generate without problem with re2c 1.0.1 Are there things I missed? re2c 1.0.3 is required ? ### PHP Version PHP 8.3.3 ### Operating System _No response_

« previous php.bugs (#246375) next »