Page MenuHomePhabricator
Paste P1162

stderr.php
ActivePublic

Authored by epriestley on May 23 2014, 8:15 PM.
Tags
None
Referenced Files
F159445: stderr.php
May 23 2014, 8:15 PM
Subscribers
None
#!/usr/bin/env php
<?php
$root = dirname(dirname(dirname(__FILE__)));
require_once $root.'/scripts/__init_script__.php';
$args = new PhutilArgumentParser($argv);
$args->setTagline('test console logging');
$args->setSynopsis(<<<EOHELP
**stderr.php** __options__
Test console logging.
EOHELP
);
$args->parseStandardArguments();
$args->parse(array());
$console = PhutilConsole::getConsole();
while (true) {
$console->writeOut("%s\n", str_repeat('x', 64));
}

Event Timeline

epriestley changed the title of this paste from untitled to stderr.php.
epriestley updated the paste's language from autodetect to autodetect.