1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/opcache/tests/compact_literals_collision.phpt
T
Nikita Popov ea256a218b Add %0 format to run-tests.php
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.
2021-05-29 11:33:13 +02:00

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)