From:             
Operating system: Debian Squeeze
PHP version:      5.3.8
Package:          *Compile Issues
Bug Type:         Bug
Bug description:php-cgi not created when compiled with --enable-fpm

Description:
------------
I'm not sure if this is a compile bug or if there's missing some important
information in the documentation. However it's a case which should be
looked at.

When compiling PHP with the option '--enable-fpm', the cli binary (php) is
created, but the cgi binary (php-cgi) is not created.
Either there's a problem in the creation of the binaries or the
documentation should be updated with this information.

I've found bug report #53271 which informs about this problem but it is
shown as 'fixed in trunk'. That was 5.3.3 at the time, meanwhile a new
version from trunk should have been created if I'm not mistaken?

Test script:
---------------
#!/bin/sh
./configure --prefix=/usr \
--with-libdir=lib64 \
--with-config-file-path=/etc/apache2 \
--with-openssl \
--with-kerberos \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--with-curl \
--enable-exif \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-gettext \
--with-imap \
--with-imap-ssl \
--enable-intl \
--enable-mbstring \
--with-mcrypt \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--enable-soap \
--enable-sockets \
--with-iconv \
--with-xsl \
--enable-zip \
--enable-fpm

Expected result:
----------------
All binaries should be created (php, php-cgi, php-fpm).

php-5.3.8 # ll sapi/cgi/
total 29M
-rw-r--r-- 1 someuser someuser  66K Aug 11 08:38 cgi_main.c
-rw-r--r-- 1 root      root       310 Oct 26 21:57 cgi_main.lo
-rw-r--r-- 1 root      root      141K Oct 26 21:57 cgi_main.o
-rwxr-xr-x 1 someuser someuser 1.7K Sep 27  2007 CHANGES
-rw-r--r-- 1 someuser someuser 3.1K Oct  1  2007 config9.m4
-rw-r--r-- 1 someuser someuser  322 Oct  5  2007 config.w32
-rw-r--r-- 1 someuser someuser   72 Feb 14  2007 CREDITS
-rw-r--r-- 1 someuser someuser  30K Jan 19  2011 fastcgi.c
-rw-r--r-- 1 someuser someuser 4.5K Jan  1  2011 fastcgi.h
-rw-r--r-- 1 root      root       308 Oct 26 21:57 fastcgi.lo
-rw-r--r-- 1 root      root       88K Oct 26 21:57 fastcgi.o
-rw-r--r-- 1 someuser someuser   68 Sep 26  2007 Makefile.frag
-rwxr-xr-x 1 root      root       28M Oct 26 21:57 php-cgi
-rw-r--r-- 1 someuser someuser    0 Sep 26  2007 php.sym
-rw-r--r-- 1 someuser someuser 6.0K Jul 24  2006 README.FastCGI
drwxr-xr-x 2 someuser someuser 4.0K Aug 23 11:31 tests

Actual result:
--------------
After make, only cli (php) and and php-fpm binaries are created.

php-5.3.8 # ll sapi/cgi/
total 144K
-rw-r--r-- 1 someuser someuser  66K Aug 11 08:38 cgi_main.c
-rwxr-xr-x 1 someuser someuser 1.7K Sep 27  2007 CHANGES
-rw-r--r-- 1 someuser someuser 3.1K Oct  1  2007 config9.m4
-rw-r--r-- 1 someuser someuser  322 Oct  5  2007 config.w32
-rw-r--r-- 1 someuser someuser   72 Feb 14  2007 CREDITS
-rw-r--r-- 1 someuser someuser  30K Jan 19  2011 fastcgi.c
-rw-r--r-- 1 someuser someuser 4.5K Jan  1  2011 fastcgi.h
-rw-r--r-- 1 someuser someuser   68 Sep 26  2007 Makefile.frag
-rw-r--r-- 1 someuser someuser    0 Sep 26  2007 php.sym
-rw-r--r-- 1 someuser someuser 6.0K Jul 24  2006 README.FastCGI
drwxr-xr-x 2 someuser someuser 4.0K Aug 23 11:31 tests

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60144&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60144&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60144&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60144&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60144&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60144&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60144&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60144&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60144&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60144&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60144&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60144&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60144&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60144&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60144&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60144&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60144&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60144&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60144&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60144&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60144&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60144&r=mysqlcfg

Reply via email to