|
@@ -8,8 +8,9 @@
|
|
|
*
|
|
*
|
|
|
* @author walkor<walkor@workerman.net>
|
|
* @author walkor<walkor@workerman.net>
|
|
|
* @copyright walkor<walkor@workerman.net>
|
|
* @copyright walkor<walkor@workerman.net>
|
|
|
- * @link http://www.workerman.net/
|
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
|
|
+ *
|
|
|
|
|
+ * @link http://www.workerman.net/
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
// Display errors.
|
|
// Display errors.
|
|
@@ -28,12 +29,11 @@ const WORKERMAN_CONNECT_FAIL = 1;
|
|
|
const WORKERMAN_SEND_FAIL = 2;
|
|
const WORKERMAN_SEND_FAIL = 2;
|
|
|
|
|
|
|
|
// Define OS Type
|
|
// Define OS Type
|
|
|
-const OS_TYPE_LINUX = 'linux';
|
|
|
|
|
|
|
+const OS_TYPE_LINUX = 'linux';
|
|
|
const OS_TYPE_WINDOWS = 'windows';
|
|
const OS_TYPE_WINDOWS = 'windows';
|
|
|
|
|
|
|
|
// Compatible with php7
|
|
// Compatible with php7
|
|
|
-if(!class_exists('Error'))
|
|
|
|
|
-{
|
|
|
|
|
|
|
+if ( ! class_exists('Error')) {
|
|
|
class Error extends Exception
|
|
class Error extends Exception
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|