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

Valgrind Report for ext/pcre/tests/preg_replace_callback_array.phpt ('preg_replace_callback_array() basic functions')

Script

1: <?php
2:
3:
class Rep {
4:     public function 
__invoke() {
5:         return 
"d";
6:     }
7: }
8:
9: class 
Foo {
10:     public static function 
rep($rep) {
11:         return 
"ok";
12:     }
13: }
14:
15: function 
b() {
16:     return 
"b";
17: }
18:
19:
var_dump(preg_replace_callback_array(
20:     array(
21:         
"/a/" => 'b',
22:         
"/b/" => function () { return "c"; },
23:         
"/c/" => new Rep,
24:         
'/d/' => array("Foo""rep")), 'a'));
25:
26:
var_dump(preg_replace_callback_array(
27:     array(
28:         
"/a/" => 'b',
29:         
"/c/" => new Rep,
30:         
"/b/" => function () { return "ok"; },
31:         
'/d/' => array("Foo""rep")), 'a'));
32:
33:
var_dump(preg_replace_callback_array(
34:     array(
35:         
'/d/' => array("Foo""rep"),
36:         
"/c/" => new Rep,
37:         
"/a/" => 'b',
38:         
"/b/" => function($a) { return "ok"; }), 'a', -1$count));
39:
40:
var_dump($count);
41:
?>
42:

Report

==12197== Conditional jump or move depends on uninitialised value(s)
==12197==    at 0x4140B7D: ???
==12197==    by 0x14F40E37: ???
==12197==    by 0x14F40E37: ???
==12197==    by 0x14F40E38: ???
==12197==    by 0x1FFEFFBAFF: ???
==12197==    by 0x100000000: ???
==12197== 
==12197== Conditional jump or move depends on uninitialised value(s)
==12197==    at 0x41408FD: ???
==12197==    by 0x14F410C7: ???
==12197==    by 0x14F410C7: ???
==12197==    by 0x14F410C9: ???
==12197==    by 0x1FFEFFBAFF: ???
==12197==    by 0x100000000: ???
==12197== 
==12197== Conditional jump or move depends on uninitialised value(s)
==12197==    at 0x41408FD: ???
==12197==    by 0x13CDE227: ???
==12197==    by 0x13CDE227: ???
==12197==    by 0x13CDE228: ???
==12197==    by 0x1FFEFFBAFF: ???
==12197==    by 0x100000000: ???
==12197== 
==12197== Conditional jump or move depends on uninitialised value(s)
==12197==    at 0x4140B7D: ???
==12197==    by 0x13CDE227: ???
==12197==    by 0x13CDE227: ???
==12197==    by 0x13CDE228: ???
==12197==    by 0x1FFEFFBAFF: ???
==12197==    by 0x100000000: ???
==12197== 

 

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

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