mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
18 lines
263 B
PHP
18 lines
263 B
PHP
--TEST--
|
|
Bug #28800 (Incorrect string to number conversion for strings starting with 'inf')
|
|
--FILE--
|
|
<?php
|
|
$strings = array('into', 'info', 'inf', 'infinity', 'infin', 'inflammable');
|
|
foreach ($strings as $v) {
|
|
echo ($v+0)."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
0
|
|
0
|
|
0
|
|
0
|
|
0
|
|
0
|
|
|