--TEST--
Check for gmp presence
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"?>
--FILE--
<?php 
echo "gmp extension is available";
/*
    you can add regression tests for your extension here

  the output of your test code has to be equal to the
  text in the --EXPECT-- section below for the tests
  to pass, differences between the output and the
  expected text are interpreted as failure

    see php5/tests/README for further information on
  writing regression tests
*/
?>
--EXPECT--
gmp extension is available
 return true;
}

function gc($maxlifetime) {
    return true;
}

session_set_save_handler('open', 'close', 'read', 'write', 'destroy', 'gc');
session_start();
session_write_close();
echo "um, hi\n";

?>
--EXPECTF--
write: goodbye cruel world