Patch completion_over.patch for Readline related Bug #55694
Patch version 2011-09-14 14:43 UTC
Return to Bug #55694 |
Download this patch
Patch Revisions:
Developer: axel.ml@laposte.net
--- php-5.3.8/ext/readline/readline.c 2011-07-28 12:42:45.000000000 +0200
+++ php-5.3.8.new/ext/readline/readline.c 2011-09-14 14:30:32.836246447 +0200
@@ -244,6 +244,7 @@
#endif
add_assoc_string(return_value,"library_version",(char *)SAFE_STRING(rl_library_version),1);
add_assoc_string(return_value,"readline_name",(char *)SAFE_STRING(rl_readline_name),1);
+ add_assoc_long(return_value, "attempted_completion_over", rl_attempted_completion_over);
} else {
if (!strcasecmp(what,"line_buffer")) {
oldstr = rl_line_buffer;
@@ -298,7 +299,15 @@
rl_readline_name = strdup(Z_STRVAL_PP(value));;
}
RETVAL_STRING(SAFE_STRING(oldstr),1);
- }
+ } else if (!strcasecmp(what, "attempted_completion_over")) {
+ oldval = rl_attempted_completion_over;
+ if (value) {
+ convert_to_long_ex(value);
+ rl_attempted_completion_over = Z_LVAL_PP(value);
+ }
+ RETVAL_LONG(oldval);
+ }
+
}
}
|