xref: /php-src/ext/fileinfo/tests/bug71434.phpt (revision b7c5813c)
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$finfo = new finfo();
16echo $finfo->buffer($a) . "\n";
17?>
18--EXPECT--
19text/x-script.python
20Python script, ASCII text executable
21