Skip to content

Commit 8db6dd8

Browse files
committed
Add php_debug and php_zts variables
1 parent c8d2e55 commit 8db6dd8

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

build/php.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,4 +2862,6 @@ AC_DEFUN([PHP_SET_LIBS_PRIVATE],
28622862
AS_VAR_SET_IF([ZEND_EXTRA_LIBS],
28632863
[AS_VAR_APPEND([PHP_LIBS_PRIVATE], [" $ZEND_EXTRA_LIBS"])])
28642864
AC_SUBST([PHP_LIBS_PRIVATE])
2865+
AC_SUBST([ZEND_DEBUG])
2866+
AC_SUBST([ZEND_ZTS])
28652867
])

sapi/embed/php-embed.pc.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ php_vernum=@PHP_VERSION_ID@
2121
php_inidir=@PHP_CONFIG_FILE_SCAN_DIR@
2222
# The path in which to look for php.ini.
2323
php_inipath=@PHP_CONFIG_FILE_PATH@
24+
# Whether PHP is built in debug mode (yes) or not (no).
25+
php_debug=@ZEND_DEBUG@
26+
# Whether PHP is built with thread safety (yes) or not (no).
27+
php_zts=@ZEND_ZTS@
2428

2529
Name: PHP Embed SAPI
2630
Description: A lightweight SAPI to embed PHP into application using C bindings

scripts/php.pc.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ php_vernum=@PHP_VERSION_ID@
2121
php_inidir=@PHP_CONFIG_FILE_SCAN_DIR@
2222
# The path in which to look for php.ini.
2323
php_inipath=@PHP_CONFIG_FILE_PATH@
24+
# Whether PHP is built in debug mode (yes) or not (no).
25+
php_debug=@ZEND_DEBUG@
26+
# Whether PHP is built with thread safety (yes) or not (no).
27+
php_zts=@ZEND_ZTS@
2428

2529
Name: PHP
2630
Description: Build extension for a PHP general-purpose scripting language

0 commit comments

Comments
 (0)