xref: /PHP-8.1/ext/pdo_mysql/tests/bug70272.phpt (revision b5a14e6c)
1--TEST--
2Bug #70272 (Segfault in pdo_mysql)
3--EXTENSIONS--
4pdo_mysql
5--SKIPIF--
6<?php
7require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
8MySQLPDOTest::skip();
9?>
10--INI--
11report_memleaks=off
12--FILE--
13<?php
14$a = new Stdclass();
15$a->a = &$a;
16require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
17
18$dummy = new StdClass();
19
20$db = PDOTest::test_factory(__DIR__ . '/common.phpt');
21$dummy = NULL;
22
23$a->c = $db;
24$a->b = $db->prepare("select 1");
25$a->d = $db->prepare("select 2");
26$a->e = $db->prepare("select 3");
27$a->f = $db->prepare("select 4");
28gc_disable();
29?>
30okey
31--EXPECT--
32okey
33