PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/spl/tests/iterator_055.phpt ('SPL: RegexIterator::SPLIT, USE_KEY')

Script

1: <?php
2:
3:
class MyRegexIterator extends RegexIterator
4:
{
5:     function 
show()
6:     {
7:         foreach(
$this as $k => $v)
8:         {
9:             
var_dump($k);
10:             
var_dump($v);
11:         }
12:     }
13: }
14:
15:
$ar = new ArrayIterator(array('1'=>0,'1,2'=>1,'1,2,3'=>2,0=>3,'FooBar'=>4,','=>5,',,'=>6));
16:
$it = new MyRegexIterator($ar'/(\d),(\d)/'RegexIterator::SPLITRegexIterator::USE_KEY);
17:
18:
$it->show();
19:
20:
var_dump($ar);
21:
22:
?>
23:
===DONE===
24:

Report

==15726== Conditional jump or move depends on uninitialised value(s)
==15726==    at 0x41310AD: ???
==15726==    by 0x14F2B7FA: ???
==15726==    by 0x14F2B7F7: ???
==15726==    by 0x14F2B7FC: ???
==15726==    by 0x1FFEFFB32F: ???
==15726==    by 0x140600000037: ???
==15726== 
==15726== Conditional jump or move depends on uninitialised value(s)
==15726==    at 0x41310AD: ???
==15726==    by 0x14F2B857: ???
==15726==    by 0x14F2B857: ???
==15726==    by 0x14F2B85D: ???
==15726==    by 0x1FFEFFB32F: ???
==15726==    by 0x37: ???
==15726== 

 

Generated at Sat, 09 Sep 2017 03:10:54 +0000 (14 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.