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