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

Valgrind Report for ext/posix/tests/posix_errno_variation2.phpt ('Test function posix_errno() by calling it with its expected arguments')

Script

1: <?php
2:
3:
echo "*** Test by calling function with pid error ***\n";
4:
5:
$pid 10000;
6:
7: do {
8:   
$pid += 1;       
9:   
$result shell_exec("ps -p " $pid);
10: } while (
strstr($pid$result)); 
11:
12:
posix_kill($pidSIGKILL);
13:
var_dump(posix_errno());
14:
15:
?>
16:

Report

==18838== Conditional jump or move depends on uninitialised value(s)
==18838==    at 0x4C2CDF7: __GI___rawmemchr (vg_replace_strmem.c:1242)
==18838==    by 0x52E870F: _IO_str_init_static_internal (in /lib64/libc-2.12.so)
==18838==    by 0x52DC6B4: vsscanf (in /lib64/libc-2.12.so)
==18838==    by 0x52D6727: sscanf (in /lib64/libc-2.12.so)
==18838==    by 0x4031B6: ??? (in /bin/ps)
==18838==    by 0x402335: ??? (in /bin/ps)
==18838==    by 0x5291D5C: (below main) (in /lib64/libc-2.12.so)
==18838== 

 

Generated at Tue, 14 Apr 2015 11:48:58 +0000 (3 days ago)

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