[php-src] Issue #8170: --enable-debug configure option does not take effect on Windows.
| From: | cmb69 | Date: | Mon, 07 Mar 2022 14:52:06 +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-240252@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8170
Comment Author: cmb69
Well,
--enable-debug is pretty close to "Debug" builds in Visual Studio, but
the option also adds suffixes for libraries to link against (e.g. php8_debug.lib instead of
php8.dll,, and for third-party libraries *_debug.lib files are linked if available).
Just defining ZEND_DEBUG=1 to be able to build with a release version would not try to
link to the _debug.libs, but would still not work, since some functions exposed by the Zend Engine
have different signatures for release and debug builds, respectively (e.g. efree() which includes
the filename and lineno only for debug builds), and as such linking fails due to the name mangling
for ZEND_FASTCALL.
Thus, I don't know whether it even would make sense to attempt such "mixed" builds.
Why not just use release builds of extensions with release builds of php-src, and debug builds of
extensions with debug builds of php-src?