1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/dba/tests/bug72157.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

23 lines
643 B
PHP

--TEST--
Bug #72157 (use-after-free caused by dba_open)
--SKIPIF--
<?php
require_once(__DIR__ .'/skipif.inc');
?>
--FILE--
<?php
$var0 = fopen(__FILE__,"r");
$var5 = dba_open(null,$var0);
$var5 = dba_open(null,$var0);
$var5 = dba_open(null,$var0);
$var5 = dba_open($var0,$var0);
?>
--EXPECTF--
Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d
Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d
Warning: dba_open(,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d
Warning: dba_open(Resource id #5,Resource id #5): Illegal DBA mode in %sbug72157.php on line %d