mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
22 lines
430 B
PHP
22 lines
430 B
PHP
--TEST--
|
|
Test finfo extention : loading into phpinfo()
|
|
--SKIPIF--
|
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "*** Testing finfo extension : loading info phpinfo() ***\n";
|
|
|
|
ob_start();
|
|
echo phpinfo(8);
|
|
$output = ob_get_clean();
|
|
|
|
var_dump(preg_match("/fileinfo support => enabled/", $output));
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
*** Testing finfo extension : loading info phpinfo() ***
|
|
int(1)
|
|
===DONE===
|