Skip to content

Commit 72a18f8

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: Fix test on 8.4+ (php#20196)
2 parents 3ee2f44 + a557881 commit 72a18f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ext/pdo_mysql/tests/gh20122.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ pdo_mysql
88
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
99
MySQLPDOTest::skip();
1010
?>
11-
--XFAIL--
1211
--FILE--
1312
<?php
1413
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
15-
$pdo = MySQLPDOTest::factory();
14+
$db = MySQLPDOTest::factory();
1615

17-
$db->exec('CREATE TABLE test (bar JSON)');
18-
$db->exec('INSERT INTO test VALUES("[]")');
16+
$db->exec('CREATE TABLE test_gh20122 (bar JSON)');
17+
$db->exec('INSERT INTO test_gh20122 VALUES("[]")');
1918

20-
$stmt = $db->query('SELECT * from test');
19+
$stmt = $db->query('SELECT * from test_gh20122');
2120
$meta = $stmt->getColumnMeta(0);
2221

2322
// Note: JSON is an alias for LONGTEXT on MariaDB!
2423
echo $meta['native_type'], "\n";
2524
?>
2625
--CLEAN--
2726
<?php
28-
require __DIR__ . '/mysql_pdo_test.inc';
29-
MySQLPDOTest::dropTestTable();
27+
require_once __DIR__ . '/inc/mysql_pdo_test.inc';
28+
$pdo = MySQLPDOTest::factory();
29+
$pdo->query('DROP TABLE IF EXISTS test_gh20122');
3030
?>
3131
--EXPECTF--
3232
%r(JSON|LONGTEXT)%r

0 commit comments

Comments
 (0)