Ticket #83: bug_segfault_when_adding_value.php
File bug_segfault_when_adding_value.php, 347 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | <? |
2 | /* FROM phpinfo() |
3 | * xapian |
4 | * |
5 | * Xapian Support => enabled |
6 | * Xapian Compiled Version => 0.9.6 |
7 | */ |
8 | |
9 | |
10 | // set up a search db |
11 | $index_path = "xapian_db"; |
12 | $index_ptr = new_WritableDatabase($index_path, DB_CREATE_OR_OPEN); |
13 | |
14 | $document_ptr = new_document(); |
15 | |
16 | // this will make xapian segfault |
17 | document_add_value($document_pointer, 0, 1); |
18 | ?> |