mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
25 lines
662 B
PHP
25 lines
662 B
PHP
--TEST--
|
|
Bug #72157 (use-after-free caused by dba_open)
|
|
--EXTENSIONS--
|
|
dba
|
|
--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
|