Constants.php 744 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * This file is part of workerman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. // Date.timezone
  15. if(!ini_get('date.timezone') )
  16. {
  17. date_default_timezone_set('Asia/Shanghai');
  18. }
  19. // Display errors.
  20. ini_set('display_errors', 'on');
  21. // Reporting all.
  22. error_reporting(E_ALL);
  23. // For onError callback.
  24. define('WORKERMAN_CONNECT_FAIL', 1);
  25. // For onError callback.
  26. define('WORKERMAN_SEND_FAIL', 2);