ID: 22773 User updated by: joe at mcknight dot de Reported By: joe at mcknight dot de Status: Bogus Bug Type: CGI related Operating System: Linux PHP Version: 4.3.2-RC New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2003-03-19 16:07:26] joe at mcknight dot de I get the same error: phpinfo() says: Configure Command './configure' '--disable-all' '--disable-cli' Server API CGI Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib/php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 /usr/local/lib/php.ini contains just the single line: register_globals = On What next ? :-) ------------------------------------------------------------------------ [2003-03-19 15:36:16] [EMAIL PROTECTED] Note: I just tested PHP 4.3.1 CGI within Apache 1.3.27 and it worked just fine. ------------------------------------------------------------------------ [2003-03-19 15:31:10] [EMAIL PROTECTED] Please, let us decide what the correct categories for bug reports are. And do this using the latest stable snapshot: # rm config.cache && ./configure --disable-all --disable-cli # make Use that CGI binary, and make sure you DO NOT have php.ini in /usr/local/lib Let us know if you get the same results. ------------------------------------------------------------------------ [2003-03-19 13:45:55] joe at mcknight dot de Sorry for reassigning this to variables again (reason given below) First to your question: I'm using the CGI interface. I compiled php 4.3.2-RC1 with the following configure options: ./configure \ --prefix=/usr/share \ --datadir=/usr/share/php \ --bindir=/usr/bin \ --libdir=/usr/share \ --with-config-file-path=/etc \ --with-exec-dir=/usr/lib/php/bin \ --with-mysql=/usr \ --with-gd=yes \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-tiff-dir=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-xpm-dir=/usr/X11R6 \ --with-ldap=yes \ --with-zlib=yes \ --with-bz2 \ --with-gmp \ --with-xml=/usr/local \ --with-dom \ --with-ttf \ --with-t1lib \ --with-mcal=/usr \ --with-imap=yes \ --with-sablot \ --with-readline \ --with-ftp \ --with-ndbm \ --with-gdbm \ --with-mcrypt \ --with-gettext \ --with-mm \ --enable-versioning \ --enable-yp \ --enable-bcmath \ --enable-trans-sid \ --enable-inline-optimization \ --enable-track-vars \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-shmop \ --enable-calendar \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-exif \ --enable-ftp \ --enable-memory-limit \ --enable-filepro \ --enable-dbase \ --enable-ctype \ --disable-debug \ --enable-force-cgi-redirect \ --enable-sigchild \ --with-openssl=/usr \ --without-curl \ --with-imap-ssl \ --with-pgsql=/usr \ --with-snmp \ --without-qtdom Next I saw that it worked on another machine with php 4.0.6 compiled as a module into apache. So I got this old version and compiled the CGI version. Guess what? It worked! With the same apache 1.3.26 from Debian woody, everything the same except for the php cgi binary. So I believe that this indeed is a php bug. I compiled 4.0.6 with the same options except for: --without-dom --without-mcrypt --without-sablot (had to disable them to get the configure run finished) Thanks a lot for your time, feel free to ask me for further information. ------------------------------------------------------------------------ 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