File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,11 @@ if [ "${PHP_FULL_VERSION:0:3}" == "5.3" ]; then
100100 exit 1
101101fi
102102
103- cd ${PARSER_DIR}
104-
105103# Cleanup
104+
105+ rm -rf .libs
106+
107+ cd ${PARSER_DIR}
106108rm -f \
107109 * .o \
108110 * .lo \
@@ -114,7 +116,10 @@ rm -f \
114116 parser.php5.out \
115117 parser.php7.c \
116118 parser.php7.h \
117- parser.php7.out
119+ parser.php7.out \
120+ parser.loT
121+
122+ rm -rf .libs
118123
119124${RE2C_BIN} -o scanner.c scanner.re
120125
@@ -144,8 +149,6 @@ sed s/"#line"/"\/\/"/g parser.c > xx && mv -f xx parser.c
144149
145150cd ${CURRENT_DIR}
146151
147- echo
148-
149152# Clean current compilation
150153if [ -f Makefile ]; then
151154 make clean
@@ -160,5 +163,12 @@ ${PHPIZE_BIN}
160163
161164make -j" $( getconf _NPROCESSORS_ONLN) "
162165
163- echo -e " \nThanks for compiling Zephir Parser!\nBuild succeed: Please restart your web server to complete the installation\n"
166+ exit_status=$?
167+
168+ if [ ! $exit_status -eq 0 ]; then
169+ echo -e " \nSomething went wrong.\nCheck logs and/or output to determine issue.\n"
170+ else
171+ echo -e " \nBuild succeed.\n"
172+ fi
164173
174+ exit $exit_status
Original file line number Diff line number Diff line change 11--TEST--
2- zephir_parse_file() - Tests class variables
2+ zephir_parse_file() - Tests using globals
33--SKIPIF--
44<?php require (__DIR__ . "/../zephir_parser_skip.inc " ); ?>
55--FILE--
You can’t perform that action at this time.
0 commit comments