xref: /PHP-8.2/ext/fileinfo/tests/bug71434.phpt (revision bd9f4fa6)
1--TEST--
2Bug #68735 fileinfo out-of-bounds memory access
3--EXTENSIONS--
4fileinfo
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