mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Fixed bug #53630 (Fixed parameter handling inside readline() function).
This commit is contained in:
parent
00eaff1528
commit
934e8d134c
@ -196,7 +196,7 @@ PHP_FUNCTION(readline)
|
||||
int prompt_len;
|
||||
char *result;
|
||||
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!", &prompt, &prompt_len)) {
|
||||
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!", &prompt, &prompt_len)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user