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

Valgrind Report for ext/readline/tests/bug77812-readline.phpt ('Bug #77812 (Interactive mode does not support PHP 7.3-style heredoc)')

Script

1: <?php
2: $php 
getenv('TEST_PHP_EXECUTABLE');
3:
$ini getenv('TEST_PHP_EXTRA_ARGS');
4:
$descriptorspec = [['pipe''r'], STDOUTSTDERR];
5:
$proc proc_open("$php $ini -a"$descriptorspec$pipes);
6:
var_dump($proc);
7:
fwrite($pipes[0], "echo <<<FOO\n    bar\n    FOO;\n");
8:
fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
9:
fwrite($pipes[0], "echo <<<FOO\n    xxx\n    FOO;\nFOO\n;\n");
10:
fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
11:
fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
12:
fclose($pipes[0]);
13:
proc_close($proc);
14:
?>
15:

Report

==11401== Syscall param sendmsg(msg.msg_name) points to uninitialised byte(s)
==11401==    at 0xD58FBD0: __sendmsg_nocancel (in /lib64/libc-2.12.so)
==11401==    by 0x5C1BBF7: readline (in /lib64/libreadline.so.6.0)
==11401==    by 0xC31A00: readline_shell_run (readline_cli.c:620)
==11401==    by 0x13DD642: do_cli (php_cli.c:998)
==11401==    by 0x13DF1BD: main (php_cli.c:1396)
==11401==  Address 0x1ffeffdf52 is on thread 1's stack
==11401==  in frame #1, created by readline (???:)
==11401== 

 

Generated at Fri, 17 Sep 2021 16:14:14 +0000 (6 days ago)

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