File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -653,6 +653,10 @@ PHP_FUNCTION(readline_callback_handler_install)
653
653
Informs the readline callback interface that a character is ready for input */
654
654
PHP_FUNCTION (readline_callback_read_char )
655
655
{
656
+ if (zend_parse_parameters_none () == FAILURE ) {
657
+ return ;
658
+ }
659
+
656
660
if (Z_TYPE (_prepped_callback ) != IS_UNDEF ) {
657
661
rl_callback_read_char ();
658
662
}
@@ -663,6 +667,10 @@ PHP_FUNCTION(readline_callback_read_char)
663
667
Removes a previously installed callback handler and restores terminal settings */
664
668
PHP_FUNCTION (readline_callback_handler_remove )
665
669
{
670
+ if (zend_parse_parameters_none () == FAILURE ) {
671
+ return ;
672
+ }
673
+
666
674
if (Z_TYPE (_prepped_callback ) != IS_UNDEF ) {
667
675
rl_callback_handler_remove ();
668
676
zval_ptr_dtor (& _prepped_callback );
@@ -677,6 +685,10 @@ PHP_FUNCTION(readline_callback_handler_remove)
677
685
Ask readline to redraw the display */
678
686
PHP_FUNCTION (readline_redisplay )
679
687
{
688
+ if (zend_parse_parameters_none () == FAILURE ) {
689
+ return ;
690
+ }
691
+
680
692
#if HAVE_LIBEDIT
681
693
/* seems libedit doesn't take care of rl_initialize in rl_redisplay
682
694
* see bug #72538 */
@@ -693,6 +705,10 @@ PHP_FUNCTION(readline_redisplay)
693
705
Inform readline that the cursor has moved to a new line */
694
706
PHP_FUNCTION (readline_on_new_line )
695
707
{
708
+ if (zend_parse_parameters_none () == FAILURE ) {
709
+ return ;
710
+ }
711
+
696
712
rl_on_new_line ();
697
713
}
698
714
/* }}} */
You can’t perform that action at this time.
0 commit comments