File: phpinfo.php

package info (click to toggle)
php-amqplib 3.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,060 kB
  • sloc: php: 13,145; makefile: 77; sh: 27
file content (20 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

echo '# General info', PHP_EOL;
phpinfo(INFO_GENERAL);
echo PHP_EOL;

echo '# Extensions', PHP_EOL;
print_r(array_intersect(get_loaded_extensions(), ['sockets', 'bcmath', 'mbstring', 'pcntl']));
echo PHP_EOL;

echo 'PHP_INT_SIZE=', PHP_INT_SIZE, PHP_EOL;
echo 'PHP_INT_MAX=', PHP_INT_MAX, PHP_EOL;

echo '# Constants', PHP_EOL;
$constants = get_defined_constants(true);
$socketConstant = isset($constants['sockets']) ? $constants['sockets'] : array();
ksort($socketConstant);
foreach ($socketConstant as $name => $value) {
    echo sprintf('%-30s', $name), $value, PHP_EOL;
}