File tree Expand file tree Collapse file tree 1 file changed +7
-38
lines changed
Expand file tree Collapse file tree 1 file changed +7
-38
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ foreach($stmt as $obj) {
5454 var_dump ($ obj );
5555}
5656
57- echo "Fetch into: \n" ;
58- $ stmt = $ db ->query ('SELECT id, val2, val FROM pdo_stmt_cyclic_ref ' );
59- $ stmt ->ref ->stmt = $ stmt ;
60- $ stmt ->setFetchMode (PDO ::FETCH_INTO , new TestRow ('I am being fetch into ' ));
61- foreach ($ stmt as $ obj ) {
62- var_dump ($ obj );
63- }
57+ // echo "Fetch into:\n";
58+ // $stmt = $db->query('SELECT id, val2, val FROM pdo_stmt_cyclic_ref');
59+ // $stmt->ref->stmt = $stmt;
60+ // $stmt->setFetchMode(PDO::FETCH_INTO, new TestRow('I am being fetch into'));
61+ // foreach($stmt as $obj) {
62+ // var_dump($obj);
63+ // }
6464
6565?>
6666--CLEAN--
@@ -105,34 +105,3 @@ object(TestRow)#%d (4) {
105105 ["arg"]=>
106106 string(11) "Hello world"
107107}
108- Fetch into:
109- object(TestRow)#4 (4) {
110- ["id"]=>
111- string(1) "1"
112- ["val"]=>
113- string(1) "A"
114- ["val2"]=>
115- string(2) "AA"
116- ["arg"]=>
117- string(21) "I am being fetch into"
118- }
119- object(TestRow)#4 (4) {
120- ["id"]=>
121- string(1) "2"
122- ["val"]=>
123- string(1) "B"
124- ["val2"]=>
125- string(2) "BB"
126- ["arg"]=>
127- string(21) "I am being fetch into"
128- }
129- object(TestRow)#4 (4) {
130- ["id"]=>
131- string(1) "3"
132- ["val"]=>
133- string(1) "C"
134- ["val2"]=>
135- string(2) "CC"
136- ["arg"]=>
137- string(21) "I am being fetch into"
138- }
You can’t perform that action at this time.
0 commit comments