Skip to content

Commit 2c261ba

Browse files
committed
Skip debug leak check test on release builds, make note of it not working on 8 anyways
1 parent 7a6a128 commit 2c261ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_10353_MemLeak.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ IBM-DB2: PECL bug 10353 -- Memory leak testing
44
<?php
55
require_once('skipif.inc');
66
if(version_compare(PHP_VERSION, '7.0.0', '<') == 1) die("skip: Test segfaults on PHP 5.6");
7+
if(ZEND_DEBUG_BUILD == false) die("skip: test is allegedly pointless on release builds");
78
?>
89
--FILE--
910
<?php
@@ -97,6 +98,7 @@ if ($row) {
9798

9899
/* Testing db2_foreign_keys leaks */
99100
$stmt = db2_foreign_keys($conn, NULL, NULL, NULL);
101+
/* XXX: This will fail with a TypeError in PHP 8.x instead */
100102
$row = db2_fetch_array($stmt);
101103
if ($row) {
102104
echo "Shouldn't be here\n";

0 commit comments

Comments
 (0)