dis-bench / src /php /php-src /ext /pdo_sqlite /tests /gh14712.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
393 Bytes
--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