. Fixed bug #72476 (Memleak in jit_stack). (Laruence)
. Fixed bug #72463 (mail fails with invalid argument). (Anatol)
+- Readline:
+ . Fixed bug #72538 (readline_redisplay crashes php). (Laruence)
+
- Standard:
. Fixed bug #72505 (readfile() mangles files larger than 2G). (Cschneid)
. Fixed bug #72306 (Heap overflow through proc_open and $env parameter).
Ask readline to redraw the display */
PHP_FUNCTION(readline_redisplay)
{
+#if HAVE_LIBEDIT
+ /* seems libedit doesn't take care of rl_initialize in rl_redisplay
+ * see bug #72538 */
+ using_history();
+#endif
rl_redisplay();
}
/* }}} */
--- /dev/null
+--TEST--
+Bug #72538 (readline_redisplay crashes php)
+--SKIPIF--
+<?php if (!extension_loaded("readline")) die("skip");
+if (READLINE_LIB != "libedit") die("skip libedit only");
+?>
+--FILE--
+<?php
+
+readline_redisplay();
+
+?>
+okey
+--EXPECT--
+okey