xref: /php-src/ext/readline/tests/gh16812.phpt (revision b8ba6f63)
1--TEST--
2GH-16812 readline_info(): UAF
3--EXTENSIONS--
4readline
5--SKIPIF--
6<?php
7if (getenv('SKIP_REPEAT')) die("skip readline has global state");
8?>
9--FILE--
10<?php
11readline_write_history(NULL);
12var_dump(readline_info('line_buffer', 'test'));
13?>
14--EXPECT--
15string(0) ""
16