Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1162
stderr.php
Active
Public
Actions
Authored by
epriestley
on May 23 2014, 8:15 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F159445: stderr.php
May 23 2014, 8:15 PM
2014-05-23 20:15:59 (UTC+0)
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
edited the content of this paste.
(Show Details)
May 23 2014, 8:15 PM
2014-05-23 20:15:59 (UTC+0)
epriestley
changed the title of this paste from untitled to
stderr.php
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment