Skip to content

Commit 233785a

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 7327f3d + bcbf86c commit 233785a

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

patches/8.3/cmake.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Subject: Add CMake changes for PHP-8.3 branch
66
1 file changed, 18 insertions(+), 6 deletions(-)
77

88
diff --git a/run-tests.php b/run-tests.php
9-
index 3f5d3563c7..9f889a4a01 100755
9+
index 2716f2a520..39f66088e2 100755
1010
--- a/run-tests.php
1111
+++ b/run-tests.php
1212
@@ -885,10 +885,12 @@ function write_information(): void

patches/8.3/phpdbg-prompt.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ terminals.
2929
1 file changed, 7 insertions(+), 3 deletions(-)
3030

3131
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c
32-
index 964d82ef6c..ae214c61fe 100644
32+
index 964d82ef6c..4ade8777bb 100644
3333
--- a/sapi/phpdbg/phpdbg_utils.c
3434
+++ b/sapi/phpdbg/phpdbg_utils.c
3535
@@ -318,10 +318,14 @@ PHPDBG_API const char *phpdbg_get_prompt(void) /* {{{ */
@@ -39,14 +39,14 @@ index 964d82ef6c..ae214c61fe 100644
3939
-#ifndef HAVE_LIBEDIT
4040
- /* TODO: libedit doesn't seems to support coloured prompt */
4141
+#if !defined(HAVE_LIBEDIT) || (defined(HAVE_LIBEDIT) && defined(RL_PROMPT_START_IGNORE) && defined(RL_PROMPT_END_IGNORE))
42-
if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) {
43-
- ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], "\033[%sm%s\033[0m ",
44-
+ ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1],
4542
+# if defined(HAVE_LIBEDIT) && defined(RL_PROMPT_START_IGNORE) && defined(RL_PROMPT_END_IGNORE)
46-
+ "\1\033[%sm\2%s\1\033[0m\2 ",
43+
+# define PHPDBG_PROMPT "\1\033[%sm\2%s\1\033[0m\2 "
4744
+# else
48-
+ "\033[%sm%s\033[0m ",
45+
+# define PHPDBG_PROMPT "\033[%sm%s\033[0m "
4946
+# endif
47+
if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) {
48+
- ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], "\033[%sm%s\033[0m ",
49+
+ ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], PHPDBG_PROMPT,
5050
PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code,
5151
PHPDBG_G(prompt)[0]));
5252
} else

patches/8.4/cmake.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ index e691bd3964..fff9fc09d0 100644
118118
+CMakeScripts/
119119
+/TryRunResults.cmake
120120
diff --git a/run-tests.php b/run-tests.php
121-
index e545c302f4..af7999c6c6 100755
121+
index 1c9511130c..0341ffff4c 100755
122122
--- a/run-tests.php
123123
+++ b/run-tests.php
124124
@@ -865,10 +865,12 @@ function write_information(array $user_tests, $phpdbg): void

patches/8.4/phpdbg-prompt.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ terminals.
2929
1 file changed, 7 insertions(+), 3 deletions(-)
3030

3131
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c
32-
index 329ee9a883..e72265ae8e 100644
32+
index 329ee9a883..1511a75bd0 100644
3333
--- a/sapi/phpdbg/phpdbg_utils.c
3434
+++ b/sapi/phpdbg/phpdbg_utils.c
3535
@@ -318,10 +318,14 @@ PHPDBG_API const char *phpdbg_get_prompt(void) /* {{{ */
@@ -39,14 +39,14 @@ index 329ee9a883..e72265ae8e 100644
3939
-#ifndef HAVE_LIBEDIT
4040
- /* TODO: libedit doesn't seems to support coloured prompt */
4141
+#if !defined(HAVE_LIBEDIT) || (defined(HAVE_LIBEDIT) && defined(RL_PROMPT_START_IGNORE) && defined(RL_PROMPT_END_IGNORE))
42-
if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) {
43-
- ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], "\033[%sm%s\033[0m ",
44-
+ ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1],
4542
+# if defined(HAVE_LIBEDIT) && defined(RL_PROMPT_START_IGNORE) && defined(RL_PROMPT_END_IGNORE)
46-
+ "\1\033[%sm\2%s\1\033[0m\2 ",
43+
+# define PHPDBG_PROMPT "\1\033[%sm\2%s\1\033[0m\2 "
4744
+# else
48-
+ "\033[%sm%s\033[0m ",
45+
+# define PHPDBG_PROMPT "\033[%sm%s\033[0m "
4946
+# endif
47+
if ((PHPDBG_G(flags) & PHPDBG_IS_COLOURED)) {
48+
- ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], "\033[%sm%s\033[0m ",
49+
+ ZEND_IGNORE_VALUE(asprintf(&PHPDBG_G(prompt)[1], PHPDBG_PROMPT,
5050
PHPDBG_G(colors)[PHPDBG_COLOR_PROMPT]->code,
5151
PHPDBG_G(prompt)[0]));
5252
} else

0 commit comments

Comments
 (0)