Skip to content

checking for re2c #13287

Closed
Closed
@SVGAnimate

Description

@SVGAnimate

Description

1) Setup

The following code:

user@desktop:~/$ git clone https://github.com/php/php-src.git && cd php-src
user@desktop:~/php-src$ ./configure

Resulted in this output:

...
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:

...
checking whether to use bison... no
checking whether to use re2c... no
...

2) Update

The following code:

user@desktop:~/php-src$ touch Zend/zend_language_scanner.l
user@desktop:~/php-src$ ./configure

Resulted in this output:

...
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:

...
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 ? #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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions