Re: Testing POST method

From: Date: Sat, 26 Mar 2011 14:35:23 +0000
Subject: Re: Testing POST method
References: 1 2 3 4 5  Groups: php.qa 
Request: Send a blank email to php-qa+get-65766@lists.php.net to get a copy of this message
Colin Beckingham wrote: > Felipe Pena wrote: > >> Hi, >> >> 2011/3/26 Colin Beckingham <colbec@start.ca> >> >>> Christian Weiske wrote: >>> >>> > Hello Colin, >>> > >>> > >>> >> SKIP Simple POST Method test [tests/basic/002.phpt] reason: CGI > not >>> >> available >>> >> SKIP GET and POST Method combined [tests/basic/003.phpt] reason: > CGI >>> >> not available >>> >> SKIP Two variables in POST data [tests/basic/004.phpt] reason: > CGI >>> >> not available >>> >> SKIP Three variables in POST data [tests/basic/005.phpt] reason: > CGI >>> >> not available >>> >> >>> >> How to run official 'make tests' so that POST method is checked? >>> > >>> > Compile PHP with CGI enabled. >>> > >>> >>> >> >> I did investigate cgi from ./configure --help, which indicates that >>> there is an option to --disable-cgi, implying that cgi is enabled by >>> default? >>> >>> I did recompile with explicit --enable-cgi which did not produce >>> errors, however 'make test' repeats the skip with CGI not available. >>> >>> >> But the php-cgi binary was created in sapi/cgi/ ? >> > > It looks like it was not created. The sapi/cgi/ contains the make and > build files, but no executable created. sapi/cli/ contains a php > executable. > > Where to from here? My apologies, I should have given some more info: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql -- with-mysqli --with-bz2 --with-zlib --with-gettext --with-openssl -- with-curl --with-gd --with-freetype-dir --with-ldap --enable-mbstring --with-snmp --with-xsl --with-mcrypt --enable-sockets --with-jpeg- dir=/usr/lib --enable-cgi # make install Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules /usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/ cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /home/colin/downloads/php-5.3.6/libs' chmod 755 /usr/local/apache2/modules/libphp5.so [activating module `php5' in /usr/local/apache2/conf/httpd.conf] Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config Installing man pages: /usr/local/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - already installed: 1.3.7 [PEAR] Console_Getopt - already installed: 1.3.0 [PEAR] Structures_Graph- already installed: 1.0.4 [PEAR] XML_Util - already installed: 1.2.1 [PEAR] PEAR - already installed: 1.9.2 Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path /home/colin/downloads/php-5.3.6/build/shtool install -c ext/phar/phar.phar /usr/local/bin ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar Installing PDO headers: /usr/local/include/php/ext/pdo/

« previous php.qa (#65766) next »