Arquivos
hhvm/hphp/test/ext/debugger_tests/hphpd_test_inc.php
T
Paul Tarjan f5569e4755 clean up tests dir
I think this dir shouldn't have anything non-necessary in the root.
2013-06-06 16:31:09 -07:00

16 linhas
350 B
PHP

<?php
function sendToHarness($chr) {
$fname = '/tmp/hphpd_test_fifo.'.posix_getppid();
error_log('sending flag: '.$chr);
$fp = fopen($fname, 'w');
if (!$fp) {
throw new TestFailure("failed to open test fifo");
}
if (!fwrite($fp, $chr, 1)) {
throw new TestFailure("failed to write test fifo");
}
fflush($fp);
fclose($fp);
}