ID: 41597
Comment by: strube at physik3 dot gwdg dot de
Reported By: h-nisimu at pd dot jp dot nec dot com
Status: No Feedback
Bug Type: *Compile Issues
Operating System: Solaris 9
PHP Version: 5.2.3
New Comment:
This bug is still present in php-5.2.5 with Solaris 9 (SPARC). As soon
as "make test" reaches the sapi/cgi tests, many php-cgi processes are
spawned recursively, apparently without end, almost blocking the whole
machine. I have not tested php-5 versions beside 5.2.3 and 5.2.5. The
bug never occurred with any php-4 versions.
Compiler: Sun Forte 7 (C 5.4); Make: Solaris make; Configure command:
env CC=/opt/SUNWspro/bin/cc CFLAGS=-xO2 ./configure
--enable-discard-path --enable-force-cgi-redirect --with-ndbm
--enable-dba --with-db2=/opt/dpiwww/apache
--with-mysql=/opt/dpiwww/mysql --enable-sysvsem --enable-sysvshm
--with-exec-dir=/opt/dpiwww/php5/bin
--with-config-file-path=/opt/dpiwww/php5/lib --prefix=/opt/dpiwww/php5
--disable-debug --with-zlib --with-bz2 --with-gd
--with-jpeg-dir=/usr/sfw --with-png-dir=/usr/sfw
--with-xpm-dir=/usr/openwin --with-freetype-dir=/usr/sfw
--enable-gd-native-ttf --with-gettext --disable-libxml --disable-dom
--disable-simplexml --disable-xml --disable-xmlreader
--disable-xmlwriter --without-pear
Previous Comments:
------------------------------------------------------------------------
[2007-06-13 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-06-08 20:06:37] jhagan at binghamton dot edu
I just recently ran into this same problem on a Solaris 8 box. My
configure looks like this:
./configure
--prefix=/local/apps/php/php-5.2.3
--with-config-file-path=/local/apps/php
--with-ldap=/local/apps/ldap/openldap-2.3.11
--with-mysql=/usr/local/mysql
--with-mcal=/local/apps/mcal
--with-gd
--with-jpeg-dir=/usr/local
--with-libxml-dir=/local/apps/libxml
--with-png-dir=/usr/local
--with-zlib
--with-zlib-dir=/usr/local
--with-pear
--enable-discard-path
"make test" runs okay until it trys to run sapi/cgi/tests/
001.phpt. Then it starts spawning off dozens of processes until
the system slows to a crawl and I have to kill 'make test'.
When I use the --with-apxs2 option with configure, the cgi binary
doesn't get built and 'make test' doesn't have this problem - I'm
assuming because it's not running the cgi tests. So, the problem
seems to be related to the cgi build.
------------------------------------------------------------------------
[2007-06-05 12:41:17] [EMAIL PROTECTED]
This is a patch, not a reproduce code.
And I still don't understabd what are you trying to fix with this
patch.
------------------------------------------------------------------------
[2007-06-05 12:34:33] h-nisimu at pd dot jp dot nec dot com
I am sorry,I mistake.
Reproduce code is following.
php-5.2.3/sapi/cgi/tests/include.inc
15c15
< } else if (strpos($version, "(cgi")) {
---
> } else if (strpos($version, "(cgi)")) {
------------------------------------------------------------------------
[2007-06-05 12:04:35] [EMAIL PROTECTED]
Your patch can't be right, 'cause it breaks FastCGI SAPI.
What are you trying to fix and why?
------------------------------------------------------------------------
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/41597
--
Edit this bug report at http://bugs.php.net/?id=41597&edit=1