]> git.nbdom.net Git - nb.git/commitdiff
lib/php/benchmark.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 12 Oct 2025 06:58:10 +0000 (08:58 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 12 Oct 2025 06:58:10 +0000 (08:58 +0200)
lib/php/benchmark.php
lib/php/config.php

index a1d7cd3732b28314e54fcd7194f748f5c86aedd3..a8305d9a3636d4bf9f500cc0fdcfb9f9db4732af 100755 (executable)
@@ -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');
index 04320913a663ad5a321912063995c42f37547939..b0810e424f66076e89cf1ce99004e54e8f30a469 100644 (file)
@@ -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'));