File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-18276 (persistent connection - setAttribute(Pdo\Firebird::ATTR_DATE_FORMAT, ..) results in "zend_mm_heap corrupted")
3+ --EXTENSIONS--
4+ pdo_firebird
5+ --SKIPIF--
6+ <?php require ('skipif.inc ' ); ?>
7+ --XLEAK--
8+ A bug in firebird causes a memory leak when calling `isc_attach_database()`.
9+ See https://github.com/FirebirdSQL/firebird/issues/7849
10+ --FILE--
11+ <?php
12+
13+ require ("testdb.inc " );
14+ unset($ dbh );
15+
16+ for ($ i = 0 ; $ i < 2 ; $ i ++) {
17+ $ dbh = new PDO (
18+ PDO_FIREBIRD_TEST_DSN ,
19+ PDO_FIREBIRD_TEST_USER ,
20+ PDO_FIREBIRD_TEST_PASS ,
21+ [
22+ PDO ::ATTR_PERSISTENT => true ,
23+ ],
24+ );
25+ $ dbh ->setAttribute (Pdo \firebird::ATTR_DATE_FORMAT , 'Y----m----d ' );
26+ $ dbh ->setAttribute (Pdo \firebird::ATTR_TIME_FORMAT , 'H::::i::::s ' );
27+ $ dbh ->setAttribute (Pdo \firebird::ATTR_TIMESTAMP_FORMAT , 'Y----m----d....H::::i::::s ' );
28+ unset($ dbh );
29+ }
30+
31+ echo 'done! ' ;
32+ ?>
33+ --EXPECT--
34+ done!
You can’t perform that action at this time.
0 commit comments