Annotation of embedaddon/php/ext/pdo_mysql/tests/bug_51670.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #51670 (getColumnMeta causes segfault when re-executing query after calling nextRowset)
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('pdo') || !extension_loaded('pdo_mysql')) die('skip not loaded');
6: require dirname(__FILE__) . '/config.inc';
7: require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
8: PDOTest::skip();
9: ?>
10: --FILE--
11: <?php
12: require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13: $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
14: $query = $db->prepare('SELECT 1 AS num');
15: $query->execute();
16: if(!is_array($query->getColumnMeta(0))) die('FAIL!');
17: $query->nextRowset();
18: $query->execute();
19: if(!is_array($query->getColumnMeta(0))) die('FAIL!');
20: echo 'done!';
21: ?>
22: --EXPECTF--
23: done!
24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>