xref: /PHP-8.1/ext/phar/tests/bug77247.phpt (revision 74859783)
1--TEST--
2PHP bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext)
3--EXTENSIONS--
4phar
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