docker-php-extension-installer/scripts/tests/ion

13 lines
286 B
Plaintext
Raw Permalink Normal View History

2022-05-13 15:18:20 +00:00
#!/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;