[php-src] Issue #8170: --enable-debug configure option does not take effect on Windows.

From: Date: Fri, 04 Mar 2022 16:00:38 +0000
Subject: [php-src] Issue #8170: --enable-debug configure option does not take effect on Windows.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240209@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8170 Comment Author: ranvis Hmm, looks like what I expected was not what --enable-debug for extensions provides. I didn't meant to link against the different php.lib than generated phpize script expects, but to disable optimization or to define _DEBUG, like in CMake+Visual Studio targetting "Debug" instead of "Release" or "RelWithDebInfo". (In other words, by reading help I thought --enable-debug is "Debug" because --enable-debug-pack should be "RelWithDebInfo".) By rewriting to ZEND_DEBUG=0 after configuring an extension with --enable-debug, it looks like to work; it builds and runs on release build PHP. Is ZEND_DEBUG the whole point of making interface incompatible? If so, for extensions I think ZEND_DEBUG can be propagated to say unconfigurable PHP_ZEND_DEBUG, so that --enable-debug can be retained?

« previous php.bugs (#240209) next »