Skip to content

Commit

Permalink
use readline_read_history instead of rolling our own. This also elimi…
Browse files Browse the repository at this point in the history
…nates the octal problem (\040 instead of space, for example
  • Loading branch information
scoates authored and ieure committed Nov 25, 2009
1 parent 51c4586 commit b67197e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PHP/Repl.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ public function __construct($options = array())

if ($this->options['readline'] &&
is_readable($this->options['readline_hist'])) {
array_map('readline_add_history',
file($this->options['readline_hist'],
FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES));
readline_read_history($this->options['readline_hist']);
}

if ($this->options['autorun']) {
Expand Down

0 comments on commit b67197e

Please sign in to comment.