xref: /PHP-8.0/ext/fileinfo/tests/bug71434.phpt (revision c3eeab01)
1--TEST--
2Bug #68735 fileinfo out-of-bounds memory access
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
5--FILE--
6<?php
7$a='#!env python
8# -*- coding:utf-8 -*-
9
10from serial import Serial
11from sys import exit
12';
13$finfo = new finfo(FILEINFO_MIME_TYPE);
14echo $finfo->buffer($a) . "\n";
15?>
16--EXPECT--
17text/x-script.python
18