From 9d29283392191f660ad767b246d0f4e064b5d174 Mon Sep 17 00:00:00 2001 From: Arndt Kaiser Date: Fri, 1 Aug 2025 19:51:09 +0200 Subject: [PATCH] Fix filtering of INI directives to respect leading whitespaces Directives are now correctly filtered out if the line in the php.ini file begins with whitespace characters. Closes GH-19348 --- build/Makefile.global | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Makefile.global b/build/Makefile.global index ec19efcbc58..49d4f8bcb3c 100644 --- a/build/Makefile.global +++ b/build/Makefile.global @@ -90,7 +90,7 @@ PHP_TEST_SHARED_EXTENSIONS = ` \ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d zend_extension=$(top_builddir)/modules/$$dlname"; \ done; \ fi` -PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' +PHP_DEPRECATED_DIRECTIVES_REGEX = '^[\t\ ]*(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*=' test: all @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \