Skip to content

Commit 0f7bfca

Browse files
committed
add test
1 parent e5af3c8 commit 0f7bfca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/dba/tests/gh18247.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
GH-18247: dba_open() memory leak on invalid path
3+
--EXTENSIONS--
4+
dba
5+
--FILE--
6+
<?php
7+
var_dump(dba_popen('/inexistent', 'r'));
8+
?>
9+
--EXPECTF--
10+
11+
Warning: dba_popen(/inexistent): Failed to open stream: No such file or directory in %s on line %d
12+
bool(false)

0 commit comments

Comments
 (0)