php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61088
Patch readline.patch revision 2012-02-14 18:14 UTC by nikic@php.net

Patch readline.patch for *General Issues Bug #61088

Patch version 2012-02-14 18:14 UTC

Return to Bug #61088 | Download this patch
Patch Revisions:

Developer: nikic@php.net

diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 22521e6..c9389fc 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -576,9 +576,8 @@ PHP_FUNCTION(readline_callback_handler_install)
 		FREE_ZVAL(_prepped_callback);
 	}
 
-	MAKE_STD_ZVAL(_prepped_callback);
-	*_prepped_callback = *callback;
-	zval_copy_ctor(_prepped_callback);
+	ALLOC_ZVAL(_prepped_callback);
+	MAKE_COPY_ZVAL(&callback, _prepped_callback);
 
 	rl_callback_handler_install(prompt, php_rl_callback_handler);
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 07 09:01:28 2024 UTC