PHP  
 PHP_HEAD
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

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

 

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

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