ID: 22773 Updated by: [EMAIL PROTECTED] Reported By: joe at mcknight dot de -Status: Bogus +Status: Verified Bug Type: CGI related Operating System: Linux PHP Version: 4.3.2-RC New Comment:
I just tested again this, and could finally reproduce this. (had an old cgi binary which read wrong php.ini, stupid me..) Summary of conditions: - only happens with the regular posts (ie. when rfc1867.c is used, it works fine, or GET method) - register_globals has to be 'On' - The posted value has to be longer than one (1) character - Only the global variable gets mangled, $_POST[] array has the correct value Previous Comments: ------------------------------------------------------------------------ [2003-03-24 14:46:17] joe at mcknight dot de Hi, which of the other components involved do you think is responsible for the bug? I just need some information (a guess of you is fairly okay) in order to know where to dig further. Why don't you think that it is php related? It works with php 4.0.6 and doesn't work with at least php 4.3.1 up. That's why I thought it was a php bug. Thanks again. ------------------------------------------------------------------------ [2003-03-24 03:43:19] [EMAIL PROTECTED] It definately not is any PHP bug. ------------------------------------------------------------------------ [2003-03-23 18:54:36] joe at mcknight dot de Hi, I did another test with php 4.0.6 (cgi and --disable-all as well) and the configuration posted before. It works if I just change the php binary... Can anybody tell me if this is a PHP bug or one from apache? Thanks, Joachim ------------------------------------------------------------------------ [2003-03-19 18:43:36] joe at mcknight dot de Okay, this might really be an apache error. I have a small configuration that seems to be able to reproduce it for me. I see it on 4 machines now: It's one SuSE 7.3 and 3 Debian woody/testing machines. I have the following httpd.conf and no other configuration files. The configuration assumes that there is a php4.cgi in /var/www/php-cgi/. This might be a php binary compiled with --disable-all. Could somebody please test it, just to have someone who encounters this as well? Just rename your existing configuration and move my httpd.conf in. Put the scripts below in /var/www and put the php cgi binary to /var/www/php-cgi. You'll also need to set register_globals = On in the php.ini. That was sufficient for me. On test.php, enter just a single character and click on the OK button, don't hit return but use the button... Here's my httpd configuration: ServerType standalone ServerRoot /etc/apache LockFile /var/lock/apache.lock PidFile /var/run/apache.pid LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so LoadModule action_module /usr/lib/apache/1.3/mod_actions.so Port 80 User www-data Group www-data <IfModule mod_mime.c> AddHandler cgi-script .cgi .sh .pl </IfModule> DocumentRoot /var/www AddHandler php-script .php .php3 .php4 .phtml Action php-script /php-cgi/php4.cgi ErrorLog /var/log/apache/web-error.log CustomLog /var/log/apache/web-transfer.log combined <Directory /var/www/php-cgi> Options +ExecCGI </Directory> Thank you very much ------------------------------------------------------------------------ [2003-03-19 16:09:49] [EMAIL PROTECTED] Okay, you're pulling my leg now. I don't believe this is a real bug report at all. NOBODY else can reproduce this. So even if this was real, it's just your system that has it. ------------------------------------------------------------------------ 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 http://bugs.php.net/22773 -- Edit this bug report at http://bugs.php.net/?id=22773&edit=1