php-src/sapi/phpdbg
Arnaud Le Blanc 11accb5cdf
Preferably include from build dir (#13516)
* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

    -I$(top_builddir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/main
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM
    -I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

    -I$(top_builddir)/main
    -I$(top_builddir)
    -I$(top_srcdir)/main
    -I$(top_srcdir)
    -I$(top_builddir)/TSRM
    -I$(top_builddir)/Zend
    -I$(top_srcdir)/Zend
    -I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.
2024-06-26 00:26:43 +02:00
..
tests Merge branch 'PHP-8.3' 2024-06-17 17:46:54 +01:00
.gdbinit
.phpdbginit
config.m4 Add --enable-phpdbg-debug option on Windows (#14568) 2024-06-15 14:41:15 +02:00
config.w32 Add --enable-phpdbg-debug option on Windows (#14568) 2024-06-15 14:41:15 +02:00
create-test.php Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
CREDITS
Makefile.frag Define default RE2C_FLAGS (#14615) 2024-06-24 22:09:04 +02:00
phpdbg.1.in Update year to 2024 2024-01-04 19:26:32 +01:00
phpdbg.c Merge branch 'PHP-8.3' 2024-06-21 05:04:05 +01:00
phpdbg.h Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
phpdbg.init.d
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 zend_compiler, ...: use uint8_t instead of zend_uchar (#10621) 2023-02-23 14:56:54 +00: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 Fix unused variable in phpdbg_cmd.c (#12575) 2023-10-31 08:28:16 +01:00
phpdbg_cmd.h remove specialized printing from phpdbg (#7156) 2021-06-17 14:22:33 +02:00
phpdbg_frame.c Merge branch 'PHP-8.2' into PHP-8.3 2024-03-29 17:55:33 +01:00
phpdbg_frame.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_help.c Use a single version of mempcpy(3) (#12257) 2023-12-20 15:16:32 +00:00
phpdbg_help.h Make globals const (part 2) (#10610) 2023-02-18 19:52:53 +00:00
phpdbg_info.c Revert "Remove name field from the zend_constant struct (#10954)" 2023-07-17 22:32:41 +02: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 PHPDBG: fix bug parsing 3-word opcodes 2021-04-22 10:11:26 +02: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-10715: phpdbg heap buffer overflow -- by misuse of the option "--run" 2023-02-27 19:47:55 +00:00
phpdbg_out.h Add --enable-phpdbg-debug option on Windows (#14568) 2024-06-15 14:41:15 +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 Use param->len instead of strlen 2023-12-18 13:53:57 +00: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 Merge branch 'PHP-8.3' 2024-06-17 17:46:54 +01:00
phpdbg_watch.h Drop zend_mm_set_custom_debug_handlers() (#13457) 2024-02-26 14:04:33 +01:00
phpdbg_win.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
phpdbg_win.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
test.php
web-bootstrap.php