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_050.phpt ('SPL: RegexIterator::GET_MATCH')

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','1,2','1,2,3','',NULL,array(),'FooBar',',',',,'));
16:
$it = new MyRegexIterator($ar'/(\d),(\d)/'RegexIterator::GET_MATCH);
17:
$it->show();
18:
19:
$it = new MyRegexIterator($ar'/(\d)/'RegexIterator::GET_MATCH);
20:
$it->show();
21:
22:
var_dump($ar);
23:
24:
?>
25:
===DONE===
26:

Report

==15703== Conditional jump or move depends on uninitialised value(s)
==15703==    at 0x41310AD: ???
==15703==    by 0x14F2B917: ???
==15703==    by 0x14F2B917: ???
==15703==    by 0x14F2B91D: ???
==15703==    by 0x1FFEFFB3CF: ???
==15703==    by 0x37: ???
==15703== 

 

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

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