xref: /PHP-7.1/ext/fileinfo/tests/bug71434.phpt (revision da7f42de)
1--TEST--
2Bug #68735 fileinfo out-of-bounds memory access
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/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-python
18