Skip to content

Commit c0446d5

Browse files
committed
Remove phpdbg parser files generated by bison
The parser files for phpdbg are generated by bison from the *.y file. Parser files in Zend already follows such approach of these files being ignored from tracking in the Git repository and they are shipped via the release packages. This way the end user still don't need to have bison dependency installed to install PHP. The genfiles script was refactored to generate the phpdbg parser and lexer files. Empty comment in phpdbg parser y template file has been changed to the YACC compliant /* empty */ instead of custom one.
1 parent 1362d8e commit c0446d5

File tree

4 files changed

+6
-1862
lines changed

4 files changed

+6
-1862
lines changed

Diff for: genfiles

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ if [ -z $RE2C ]; then
99
RE2C="re2c"
1010
fi
1111

12+
# Generate Zend parser and lexer files
1213
STD="make -f Zend/Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=Zend builddir=Zend top_srcdir=."
13-
1414
(eval "$STD Zend/zend_language_parser.c Zend/zend_language_scanner.c Zend/zend_ini_parser.c Zend/zend_ini_scanner.c")
1515

16+
# Generate phpdbg parser and lexer files
17+
STD="make -f sapi/phpdbg/Makefile.frag RE2C='$RE2C' RE2C_FLAGS='-i' YACC='$YACC' srcdir=sapi/phpdbg builddir=sapi/phpdbg top_srcdir=."
18+
(eval "$STD sapi/phpdbg/phpdbg_parser.c sapi/phpdbg/phpdbg_lexer.c")
19+
1620
set -x
1721

1822
CLEANUP_FILES=" \

0 commit comments

Comments
 (0)