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

Valgrind Report for sapi/cli/tests/php_cli_server_002.phpt ('$_SERVER variable')

Script

1: <?php
2:
include "php_cli_server.inc";
3:
php_cli_server_start('var_dump($_SERVER["DOCUMENT_ROOT"], $_SERVER["SERVER_SOFTWARE"], $_SERVER["SERVER_NAME"], $_SERVER["SERVER_PORT"]);');
4:
var_dump(file_get_contents("http://" PHP_CLI_SERVER_ADDRESS));
5:
?>
6:

Report

==6309== Jump to the invalid address stated on the next line
==6309==    at 0x4FE: ???
==6309==  Address 0x4fe is not stack'd, malloc'd or (recently) free'd
==6309== 
==6309== 
==6309== Process terminating with default action of signal 11 (SIGSEGV)
==6309==  Bad permissions for mapped region at address 0x4FE
==6309==    at 0x4FE: ???

 

Generated at Fri, 01 Dec 2017 18:56:15 +0000 (13 days ago)

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