From: Nicolas Boisselier Date: Sun, 12 Oct 2025 06:58:10 +0000 (+0200) Subject: lib/php/benchmark.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=237888fb8f8c582468ac57d69d65ae1698531329;p=nb.git lib/php/benchmark.php --- diff --git a/lib/php/benchmark.php b/lib/php/benchmark.php index a1d7cd37..a8305d9a 100755 --- a/lib/php/benchmark.php +++ b/lib/php/benchmark.php @@ -29,7 +29,8 @@ function _and() { $a='' and $b=''; } nb::benchmark('_and',9999999); function _sig_and() { $a='' and $b=''; } nb::benchmark('_sig_and',9999999); nb::benchmark(); exit; function _1() { date_default_timezone_set('Europe/London'); } nb::benchmark('_1'); -function _2() { error_reporting(E_ALL | E_STRICT | E_NOTICE); } nb::benchmark('_2'); +# NB 12.10.25 function _2() { error_reporting(E_ALL | E_STRICT | E_NOTICE); } nb::benchmark('_2'); +function _2() { error_reporting(E_ALL | E_NOTICE); } nb::benchmark('_2'); function _3() { ini_set('include_path','.'); } nb::benchmark('_3'); function _4() { getenv('zaza'); } nb::benchmark('_4'); function _5() { $v='Europe/London'; } nb::benchmark('_5'); diff --git a/lib/php/config.php b/lib/php/config.php index 04320913..b0810e42 100644 --- a/lib/php/config.php +++ b/lib/php/config.php @@ -7,7 +7,8 @@ */ #define('NB_EOL',''); #define('NB_PROD',true); -if (empty($_SERVER['PROD'])) error_reporting(E_ALL | E_STRICT | E_NOTICE); +# NB 12.10.25 if (empty($_SERVER['PROD'])) error_reporting(E_ALL | E_STRICT | E_NOTICE); +if (empty($_SERVER['PROD'])) error_reporting(E_ALL | E_NOTICE); // Base lib require_once(realpath(dirname(__FILE__).'/nb.php'));