mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
24 lines
558 B
PHP
24 lines
558 B
PHP
--TEST--
|
|
Bug #51670 (getColumnMeta causes segfault when re-executing query after calling nextRowset)
|
|
--EXTENSIONS--
|
|
pdo_mysql
|
|
--SKIPIF--
|
|
<?php
|
|
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
|
|
MySQLPDOTest::skip();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
|
|
$db = MySQLPDOTest::factory();
|
|
$query = $db->prepare('SELECT 1 AS num');
|
|
$query->execute();
|
|
if(!is_array($query->getColumnMeta(0))) die('FAIL!');
|
|
$query->nextRowset();
|
|
$query->execute();
|
|
if(!is_array($query->getColumnMeta(0))) die('FAIL!');
|
|
echo 'done!';
|
|
?>
|
|
--EXPECT--
|
|
done!
|