note 22356 deleted from features.commandline by nlopess
| From: | nlopess@php.net | Date: | Sun, 15 May 2005 16:33:00 +0000 |
| Subject: | note 22356 deleted from features.commandline by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89458@lists.php.net to get a copy of this message | ||
Note Submitter: daveATtechweaversDOTnet
----
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;' ) );
}
?>