Changeset 104117 in spip-zone


Ignore:
Timestamp:
Apr 28, 2017, 2:19:23 PM (3 years ago)
Author:
marcimat@…
Message:

Compat PHP 7.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/tests/test.inc

    r89864 r104117  
    163163
    164164// pour essayer de calculer/montrer le temps qu'on y met
    165 register_shutdown_function('afficher_timer', time() + microtime());
     165register_shutdown_function('afficher_timer', time() + (float)microtime());
    166166
    167167function afficher_timer($depart) {
    168168        if (!defined('_NO_TIMER'))
    169                 echo sprintf(" %.2fs", time() + microtime() - $depart);
     169                echo sprintf(" %.2fs", time() + (float)microtime() - $depart);
    170170}
    171171
Note: See TracChangeset for help on using the changeset viewer.