mirror of
https://github.com/php/php-src.git
synced 2026-04-18 13:31:27 +02:00
Updates the deprecation message for implicit incompatible float to int conversion from: ``` Implicit conversion from non-compatible float %.*H to int in %s on line %d ``` to ``` Implicit conversion from float %.*H to int loses precision in %s on line %d ``` Related: #6661
25 lines
537 B
PHP
25 lines
537 B
PHP
--TEST--
|
|
Test mt_srand() - basic function (return values) mt_srand()
|
|
--FILE--
|
|
<?php
|
|
// Should return NULL if given anything that it can convert to long
|
|
// This doesn't actually test what it does with the input :-\
|
|
var_dump(mt_srand());
|
|
var_dump(mt_srand(500));
|
|
var_dump(mt_srand(500.1));
|
|
var_dump(mt_srand("500"));
|
|
var_dump(mt_srand("500E3"));
|
|
var_dump(mt_srand(true));
|
|
var_dump(mt_srand(false));
|
|
?>
|
|
--EXPECTF--
|
|
NULL
|
|
NULL
|
|
|
|
Deprecated: Implicit conversion from float 500.1 to int loses precision in %s on line %d
|
|
NULL
|
|
NULL
|
|
NULL
|
|
NULL
|
|
NULL
|