note 22356 modified in features.commandline by vrana
| From: | vrana@php.net | Date: | Tue, 17 Aug 2004 13:55:28 +0000 |
| Subject: | note 22356 modified in features.commandline by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79846@lists.php.net to get a copy of this message | ||
a few missing d's in the handy function. here it is with the typos fixed
<?php
if (version_compare(phpversion(),'4.3.0','<'))
{
define('STDIN',fopen("php://stdin","r"));
define('STDOUT',fopen("php://stdout","r"));
define('STDERR',fopen("php://stderr","r"));
register_shutdown_function( create_function( '' , 'fclose(STDIN);
fclose(STDOUT); fclose(STDERR); return true;' ) );
}
?>
--was--
a few missing d's in the handy function. here it is with the typos fixed
if (version_compare(phpversion(),'4.3.0','<'))
{
define('STDIN',fopen("php://stdin","r"));
define('STDOUT',fopen("php://stdout","r"));
define('STDERR',fopen("php://stderr","r"));
register_shutdown_function( create_function( '' , 'fclose(STDIN);
fclose(STDOUT); fclose(STDERR); return true;' ) );
}
http://php.net/manual/en/features.commandline.php