docker-php-extension-installer/scripts/tests/ion
2022-05-13 17:18:20 +02:00

13 lines
286 B
PHP
Executable File

#!/usr/bin/env php
<?php
$serialized = ion\serialize(ion\Symbol\PHP::asTable());
$unserialized = ion\unserialize($serialized);
if (!$unserialized instanceof ion\Symbol\Table) {
fwrite(STDERR, "ion doesn't seem to be working\n");
exit(1);
}
echo "ion is working.\n";
return 0;