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