Permalink
Browse files

Minor fix: in some cases STDIN built-in constant can be undefined, sp…

…ecial check & logic added to init.php
  • Loading branch information...
1 parent d6e5f6f commit ccbc2311775659b5f76a05981c067cc437e143c5 @denis-bykov denis-bykov committed Mar 7, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/init.php
View
@@ -50,6 +50,14 @@
define('MPM_METHOD_MYSQLI', 2);
}
+if (!defined('STDIN'))
+{
+ /**
+ * In some cases STDIN built-in can be undefined
+ */
+ define('STDIN', fopen("php://stdin","r"));
+}
+
/**
* Include the MpmClassUndefinedException class.
*/

0 comments on commit ccbc231

Please sign in to comment.