php-src/sapi/phpdbg
Christoph M. Becker 3955b01653
Avoid duplicate build rules
On Windows, the cli and phpdbg SAPIs have variants (cli-win32 and
phpdbgs, respectively) which are build by default.  However, the
variants share some files, what leads to duplicate build rules in the
generated Makefile.  NMake throws warning U4004[1], but proceeds
happily, ignoring the second build rule.  That means that different
flags for duplicate rules are ignored, hinting at a potential problem.

We solve this by introducing an additional (optional) argument to
`SAPI()` and `ADD_SOURCES()` which can be used to avoid such duplicate
build rules.  It's left to the SAPI maintainers to make sure that
appropriate rules are created.  We fix this for phpdbgs right away,
which currently couldn't be build without phpdbg due to the missing
define; we remove the unused `PHP_PHPDBG_EXPORTS` flag altogether.

[1] <https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/nmake-warning-u4004>

Closes GH-17545.
2025-02-01 11:21:09 +01:00
..
tests Merge branch 'PHP-8.3' into PHP-8.4 2025-01-30 19:31:38 +01:00
.gdbinit
.phpdbginit Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
config.m4 Remove phpdbg binary during make clean (#16085) 2024-09-27 16:24:17 +02:00
config.w32 Avoid duplicate build rules 2025-02-01 11:21:09 +01:00
create-test.php Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
CREDITS
Makefile.frag Remove phpdbg binary during make clean (#16085) 2024-09-27 16:24:17 +02:00
phpdbg.1.in Update http links to https and sync www.php.net URLs (#14854) 2024-07-07 04:23:08 +02:00
phpdbg.c Merge branch 'PHP-8.3' into PHP-8.4 2025-01-06 21:31:03 +01:00
phpdbg.h sapi: Fix some variable shadowing (#16485) 2024-10-17 22:46:23 +01:00
phpdbg.init.d Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
phpdbg.stub.php Declare phpdbg constants in stubs (#9392) 2022-08-21 19:05:17 +02:00
phpdbg_arginfo.h Do not generate frameless info items when func info generation is disabled 2024-02-18 11:39:00 +01:00
phpdbg_bp.c sapi: Fix some variable shadowing (#16485) 2024-10-17 22:46:23 +01:00
phpdbg_bp.h zend_compiler, ...: use uint8_t instead of zend_uchar (#10621) 2023-02-23 14:56:54 +00:00
phpdbg_break.c replace phpdbg custom opcode dumper with O+ dump (#7227) 2021-07-13 15:32:14 +02:00
phpdbg_break.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_btree.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_btree.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_cmd.c Merge branch 'PHP-8.3' 2024-08-02 08:38:35 +02:00
phpdbg_cmd.h remove specialized printing from phpdbg (#7156) 2021-06-17 14:22:33 +02:00
phpdbg_frame.c sapi/phpdbg: Use HASH_FOREACH macro (#16211) 2024-10-07 00:17:30 +01:00
phpdbg_frame.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_help.c [skip ci] Update PHP version in phpdbg help (#14965) 2024-07-16 07:02:05 +02:00
phpdbg_help.h Make globals const (part 2) (#10610) 2023-02-18 19:52:53 +00:00
phpdbg_info.c phpdbg: Call enums “Enum” and traits “Trait” in info classes (#17191) 2024-12-17 19:32:47 +01:00
phpdbg_info.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_io.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
phpdbg_io.h ditch remote 2021-06-13 21:08:35 +02:00
phpdbg_lexer.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_lexer.l Partially fix GH-17387 2025-01-30 19:28:23 +01:00
phpdbg_list.c Support specifying start position in compile_string 2021-09-30 10:21:33 +02:00
phpdbg_list.h ZEND_ELEMENT_COUNT usage reduction. (#13324) 2024-02-04 19:09:15 +00:00
phpdbg_out.c Fix GH-14553: Bug in phpdbg8.3 (also 8.1 and 8.2) echo output - trimmed at NULL byte (?) 2024-07-04 18:43:42 +02:00
phpdbg_out.h Merge branch 'PHP-8.3' 2024-07-04 18:44:29 +02:00
phpdbg_parser.y Suppress unused-but-set-variable warning in parsers 2022-07-28 22:29:42 +02:00
phpdbg_print.c Remove useless NULL-check in phpdbg_print (#13853) 2024-04-02 18:17:21 +02:00
phpdbg_print.h replace phpdbg custom opcode dumper with O+ dump (#7227) 2021-07-13 15:32:14 +02:00
phpdbg_prompt.c Merge branch 'PHP-8.4' 2025-01-30 19:32:28 +01:00
phpdbg_prompt.h drop phpdbg web helper extension and wait command (#7144) 2021-06-13 14:02:11 +02:00
phpdbg_set.c replace phpdbg custom opcode dumper with O+ dump (#7227) 2021-07-13 15:32:14 +02:00
phpdbg_set.h replace phpdbg custom opcode dumper with O+ dump (#7227) 2021-07-13 15:32:14 +02:00
phpdbg_sigsafe.c Replace zend_bool uses with bool 2021-01-15 12:33:06 +01:00
phpdbg_sigsafe.h Replace zend_bool uses with bool 2021-01-15 12:33:06 +01:00
phpdbg_utils.c phpdbg: change uses of sprintf into snprintf 2024-06-14 08:12:03 -07:00
phpdbg_utils.h remove specialized printing from phpdbg (#7156) 2021-06-17 14:22:33 +02:00
phpdbg_watch.c sapi: Fix some variable shadowing (#16485) 2024-10-17 22:46:23 +01:00
phpdbg_watch.h Drop zend_mm_set_custom_debug_handlers() (#13457) 2024-02-26 14:04:33 +01:00
phpdbg_win.c Resolve -Wincompatible-pointer-types warnings (GH-17456) 2025-01-13 10:54:13 +01:00
phpdbg_win.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
test.php Apply tidy formatting 2020-02-03 13:41:31 +01:00
web-bootstrap.php Rename non-existing site phpdbg.com to localhost 2019-02-19 20:21:20 +01:00