123456789101112131415161718192021222324252627 |
- --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";
- }
- ?>
- --EXPECTF--
- Warning: A non-numeric value encountered in %s on line %d
- 0
- Warning: A non-numeric value encountered in %s on line %d
- 0
- Warning: A non-numeric value encountered in %s on line %d
- 0
- Warning: A non-numeric value encountered in %s on line %d
- 0
- Warning: A non-numeric value encountered in %s on line %d
- 0
- Warning: A non-numeric value encountered in %s on line %d
- 0
|