Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. try {
  2. // Пример ошибки, которая в php 7.2 вызовет ошибку уровня E_WARNING
  3. $c = count(null);
  4. } catch (RuntimeException $e) {
  5. // Сработает на E_WARNING: Warning: count(): Parameter must be an array or an object that implements Countable
  6. }
  7.  
  8. PHP 7.2.7 (cli) (built: Jul 3 2018 02:04:37) ( NTS MSVC15 (Visual C++ 2017) x64 )
  9. Copyright (c) 1997-2018 The PHP Group
  10. Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
  11. with Xdebug v2.7.0alpha2-dev, Copyright (c) 2002-2018, by Derick Rethans
  12. with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
  13.  
  14. error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
Add Comment
Please, Sign In to add comment