f5569e4755
I think this dir shouldn't have anything non-necessary in the root.
16 linhas
350 B
PHP
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);
|
|
}
|