1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_003_32bits.phpt
T
Ayesh Karunaratne b8e380ab09 Update deprecation message for incompatible float to int conversion
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
2021-06-07 14:36:11 +02:00

29 lines
609 B
PHP

--TEST--
Register Alloction 003: Reuse temporary register
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--EXTENSIONS--
opcache
--FILE--
<?php
function test($char_code) {
if ($char_code == !($char_code & 0xffffff80)) {
return "correct";
} else {
return "wrong";
}
}
echo test(65), "\n";
?>
--EXPECTF--
Deprecated: Implicit conversion from float 4294967168 to int loses precision in %s on line %d
correct