mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
ea256a218b
This format matches against null bytes, and prevents the test expectation from being interpreted as binary data. bless_tests.php will automatically replace \0 with %0 as well.
19 lines
292 B
PHP
19 lines
292 B
PHP
--TEST--
|
|
Collision between string and float literals during compaction
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump("\0\0\0\0\0\0\0\0");
|
|
var_dump(0.0);
|
|
var_dump("\0\0\0\0\0\0\0\0");
|
|
var_dump(0.0);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
string(8) "%0%0%0%0%0%0%0%0"
|
|
float(0)
|
|
string(8) "%0%0%0%0%0%0%0%0"
|
|
float(0)
|