ru_php/ext/pdo_sqlite/tests/gh14712.phpt

19 lines
393 B
PHP

--TEST--
GH-14712: segfault on PDORow
--EXTENSIONS--
pdo_sqlite
--CREDITS--
YuanchengJiang
--FILE--
<?php
$db = new PDO('sqlite::memory:');
try {
$db->query("select 1 as queryStringxx")->fetch(PDO::FETCH_LAZY)->documentElement->firstChild->nextElementSibling->textContent = "é";
} catch (Error $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Attempt to modify property "firstChild" on null