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_051.phpt ('SPL: RegexIterator::GET_MATCH, 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::GET_MATCHRegexIterator::USE_KEY);
17:
$it->show();
18:
19:
$it = new MyRegexIterator($ar'/(\d)/'RegexIterator::GET_MATCHRegexIterator::USE_KEY);
20:
$it->show();
21:
22:
var_dump($ar);
23:
24:
?>
25:
===DONE===
26:

Report

==31563== Conditional jump or move depends on uninitialised value(s)
==31563==    at 0x41310AD: ???
==31563==    by 0x14F2E307: ???
==31563==    by 0x14F2E307: ???
==31563==    by 0x14F2E30D: ???
==31563==    by 0x1FFEFFB37F: ???
==31563==    by 0x104CB9D: _emalloc_56 (zend_alloc.c:2336)
==31563== 

 

Generated at Sun, 24 Sep 2017 15:32:56 +0000 (39 hours ago)

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