xref: /PHP-8.0/ext/phar/tests/bug77247.phpt (revision f8d79582)
1--TEST--
2PHP bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7try {
8var_dump(new Phar('a/.b', 0,'test.phar'));
9} catch(UnexpectedValueException $e) {
10    echo "OK";
11}
12?>
13--EXPECT--
14OK