1--TEST--
2Bug #44327.2 (PDORow::queryString property & numeric offsets / Crash)
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8$db = new PDO('sqlite::memory:');
9
10$x = $db->query('select 1 as queryString');
11var_dump($x, $x->queryString);
12
13$y = $x->fetch();
14var_dump($y, @$y->queryString);
15
16print "--------------------------------------------\n";
17
18$x = $db->query('select 1 as queryString');
19var_dump($x, $x->queryString);
20
21$y = $x->fetch(PDO::FETCH_LAZY);
22var_dump($y, $y->queryString);
23
24?>
25--EXPECTF--
26object(PDOStatement)#%d (1) {
27  ["queryString"]=>
28  string(23) "select 1 as queryString"
29}
30string(23) "select 1 as queryString"
31array(2) {
32  ["queryString"]=>
33  int(1)
34  [0]=>
35  int(1)
36}
37NULL
38--------------------------------------------
39object(PDOStatement)#%d (1) {
40  ["queryString"]=>
41  string(23) "select 1 as queryString"
42}
43string(23) "select 1 as queryString"
44object(PDORow)#%d (1) {
45  ["queryString"]=>
46  string(23) "select 1 as queryString"
47}
48string(23) "select 1 as queryString"
49