xref: /PHP-8.3/ext/pdo_sqlite/tests/gh14712.phpt (revision c03196a5)
1--TEST--
2GH-14712: segfault on PDORow
3--EXTENSIONS--
4pdo_sqlite
5--CREDITS--
6YuanchengJiang
7--FILE--
8<?php
9$db = new PDO('sqlite::memory:');
10
11try {
12	$db->query("select 1 as queryStringxx")->fetch(PDO::FETCH_LAZY)->documentElement->firstChild->nextElementSibling->textContent = "é";
13} catch (Error $e) {
14	echo $e->getMessage();
15}
16?>
17--EXPECT--
18Attempt to modify property "firstChild" on null
19