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_variation1.phpt ('Test preg_replace() function : variation both arguments are arrays')

Script

1: <?php
2:
/*
3: * proto string preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, count]])
4: * Function is implemented in ext/pcre/php_pcre.c
5: */
6: /*
7: * Testing preg_replace when the regex and the replacement are both arrays.
8: */
9:
$string 'This is a string. It contains numbers (0-9) as well as parentheses and some other things!';
10:
$new_string preg_replace(array('/\b\w{1}s/''/(\d{1})-(\d{1})/''/[\(!\)]/'), array('test''$1 to $2''*'), $string);
11: print 
$new_string;
12:
?>
13:

Report

==29355== Conditional jump or move depends on uninitialised value(s)
==29355==    at 0x4131096: ???
==29355==    by 0x14F2B3DD: ???
==29355==    by 0x14F2B3A7: ???
==29355==    by 0x14F2B400: ???
==29355==    by 0x1FFEFFBB2F: ???
==29355==    by 0x4540FF: ??? (in /var/php_gcov/PHP_HEAD/sapi/cli/php)
==29355== 
==29355== Conditional jump or move depends on uninitialised value(s)
==29355==    at 0x4140C4F: ???
==29355==    by 0x14F2F193: ???
==29355==    by 0x14F2F167: ???
==29355==    by 0x14F2F1C6: ???
==29355==    by 0x1FFEFFBB0F: ???
==29355==    by 0x101411D3F: ???
==29355== 

 

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

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