Skip to content

Commit 29e9497

Browse files
committed
Add php_debug and php_zts variables
1 parent 29eea04 commit 29e9497

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
@@ -2548,4 +2548,6 @@ AC_DEFUN([PHP_SET_LIBS_PRIVATE],
25482548
AS_VAR_SET_IF([ZEND_EXTRA_LIBS],
25492549
[AS_VAR_APPEND([PHP_LIBS_PRIVATE], [" $ZEND_EXTRA_LIBS"])])
25502550
AC_SUBST([PHP_LIBS_PRIVATE])
2551+
AC_SUBST([ZEND_DEBUG])
2552+
AC_SUBST([ZEND_ZTS])
25512553
])

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)