-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadline_cli.patch
More file actions
30 lines (28 loc) · 839 Bytes
/
readline_cli.patch
File metadata and controls
30 lines (28 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c
index 8bf5d23d..52af0cba 100644
--- a/ext/readline/readline_cli.c
+++ b/ext/readline/readline_cli.c
@@ -744,12 +744,8 @@ typedef cli_shell_callbacks_t *(__cdecl *get_cli_shell_callbacks)(void);
} while(0)
#else
-/*
+
#ifdef COMPILE_DL_READLINE
-This dlsym() is always used as even the CGI SAPI is linked against "CLI"-only
-extensions. If that is being changed dlsym() should only be used when building
-this extension sharedto offer compatibility.
-*/
#define GET_SHELL_CB(cb) \
do { \
(cb) = NULL; \
@@ -759,9 +755,9 @@ this extension sharedto offer compatibility.
(cb) = get_callbacks(); \
} \
} while(0)
-/*#else
+#else
#define GET_SHELL_CB(cb) (cb) = php_cli_get_shell_callbacks()
-#endif*/
+#endif
#endif
PHP_MINIT_FUNCTION(cli_readline)