Tests: PHP extension mounts.
This commit is contained in:
11
test/php/list-extensions/index.php
Normal file
11
test/php/list-extensions/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function quote($str) {
|
||||
return '"' . $str . '"';
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
print "[" . join(",", array_map('quote', get_loaded_extensions())) . "]";
|
||||
|
||||
?>
|
||||
1
test/php/list-extensions/php.ini
Normal file
1
test/php/list-extensions/php.ini
Normal file
@@ -0,0 +1 @@
|
||||
extension=json.so
|
||||
Reference in New Issue
Block a user