Bug #69849 [Ver]: Broken output of apache_request_headers

From: Date: Tue, 16 Jun 2015 13:02:23 +0000
Subject: Bug #69849 [Ver]: Broken output of apache_request_headers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193565@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69849&edit=1 ID: 69849 Updated by: cmb@php.net Reported by: kontakt at kukulich dot cz Summary: Broken output of apache_request_headers Status: Verified Type: Bug Package: *Web Server problem Operating System: Windows7 PHP Version: 7.0.0alpha1 Block user comment: N Private report: N New Comment: The "bad characters" are null bytes, btw. Previous Comments: ------------------------------------------------------------------------ [2015-06-16 12:59:47] cmb@php.net I can confirm the issue for php-cgi. It seems the problem is in <http://lxr.php.net/xref/PHP_TRUNK/sapi/cgi/cgi_main.c#1553>, where var_len+1 is passed to add_assoc_stringl_ex(). ------------------------------------------------------------------------ [2015-06-16 12:51:00] kontakt at kukulich dot cz Yes, you're right, it's CGI (php-cgi.exe). ------------------------------------------------------------------------ [2015-06-16 12:42:33] laruence@php.net I don't remember we have apache_request_headers in FPM SAPI... are you meaing cgi? ------------------------------------------------------------------------ [2015-06-16 11:24:21] kontakt at kukulich dot cz Nginx/1.9.1 + PHP-FPM ------------------------------------------------------------------------ [2015-06-16 11:22:19] cmb@php.net I can't reproduce this behavior with the built-in webserver. Which Server API do you use (see phpinfo)? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=69849 -- Edit this bug report at https://bugs.php.net/bug.php?id=69849&edit=1

« previous php.bugs (#193565) next »