Skip to content

Commit 47a9c71

Browse files
author
Jani Taskinen
committed
- Fixed bug #49935 (Deprecated warnings make "make test" to fail)
1 parent 7957efe commit 47a9c71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile.global

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ PHP_TEST_SHARED_EXTENSIONS = ` \
7979
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
8080
done; \
8181
fi`
82+
PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
8283

8384
test: all
8485
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
8586
INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
8687
if test "$$INI_FILE"; then \
87-
$(EGREP) -v '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
88+
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
8889
else \
8990
echo > $(top_builddir)/tmp-php.ini; \
9091
fi; \
9192
INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
9293
if test "$$INI_SCANNED_PATH"; then \
9394
INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
94-
$(EGREP) -h -v '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
95+
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
9596
fi; \
9697
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
9798
TEST_PHP_SRCDIR=$(top_srcdir) \

main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,6 +2032,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
20322032
module_initialized = 1;
20332033

20342034
/* Check for deprecated directives */
2035+
/* NOTE: If you add anything here, remember to add it also in Makefile.global! */
20352036
{
20362037
static const char *directives[] = {
20372038
"define_syslog_variables",

0 commit comments

Comments
 (0)