We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84ad6a commit 10fb64fCopy full SHA for 10fb64f
ext/readline/readline.c
@@ -393,13 +393,9 @@ PHP_FUNCTION(readline_read_history)
393
RETURN_FALSE;
394
}
395
396
- /* XXX from & to NYI */
397
- if (read_history(arg)) {
398
- /* If filename is NULL, then read from `~/.history' */
399
- RETURN_FALSE;
400
- } else {
401
- RETURN_TRUE;
402
- }
+ /* XXX from & to NYI
+ If filename is NULL, then read from `~/.history' */
+ RETURN_BOOL(!read_history(arg));
403
404
405
/* }}} */
@@ -417,11 +413,7 @@ PHP_FUNCTION(readline_write_history)
417
413
418
414
419
415
420
- if (write_history(arg)) {
421
422
423
424
416
+ RETURN_BOOL(!write_history(arg));
425
426
427
0 commit comments