Skip to content

Commit b97f5f0

Browse files
SRWieZcrazywhalecc
authored andcommitted
fix: 8.4 CLI on windows (#5)
* fix: 8.4 CLI on windows * Remove redundant patch files --------- Co-authored-by: crazywhalecc <[email protected]>
1 parent 6149052 commit b97f5f0

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
File renamed without changes.

patches/cli_static_84.patch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
2+
--- a/sapi/cli/php_cli.c (revision d3bf67d44102869f340a7be0e12f4f09de0edbcf)
3+
+++ b/sapi/cli/php_cli.c (date 1735128770216)
4+
@@ -98,7 +98,7 @@
5+
6+
#if defined(PHP_WIN32)
7+
#if defined(ZTS)
8+
-ZEND_TSRMLS_CACHE_DEFINE()
9+
+//ZEND_TSRMLS_CACHE_DEFINE()
10+
#endif
11+
static DWORD orig_cp = 0;
12+
#endif
13+
@@ -1137,6 +1137,10 @@
14+
#endif
15+
{
16+
#if defined(PHP_WIN32)
17+
+ if (!php_win32_ioutil_init()) {
18+
+ fprintf(stderr, "ioutil initialization failed");
19+
+ return 1;
20+
+ }
21+
# ifdef PHP_CLI_WIN32_NO_CONSOLE
22+
int argc = __argc;
23+
char **argv = __argv;

0 commit comments

Comments
 (0)