ID: 25727
Updated by: [EMAIL PROTECTED]
-Summary: popen returns wrong exitcode
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Verified
Bug Type: Filesystem function related
Operating System: i386 Linux
-PHP Version: 4CVS-2003-10-03 (stable)
+PHP Version: 5CVS
New Comment:
Just remove the --enable-sigchild option. (you really don't need it
when you don't use oracle..)
Won't fix in PHP 4, maybe fix in PHP 5. (the sigchild issue)
Previous Comments:
------------------------------------------------------------------------
[2003-10-03 20:34:16] [EMAIL PROTECTED]
./configure \
--enable-bcmath \
--enable-calendar \
--enable-debug \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-memory-limit \
--enable-pcntl \
--enable-shmop \
--enable-sigchild \
--enable-ucd-snmp-hack \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--with-apxs=/usr/local/apache/bin/apxs \
--with-bz2 \
--with-gd \
--with-freetype-dir \
--with-gettext \
--with-ldap \
--with-mysql=/usr \
--with-mysql-sock=/var/lib/mysql/ \
--with-ncurses \
--with-snmp \
--with-xml \
--with-zlib
------------------------------------------------------------------------
[2003-10-03 20:24:25] [EMAIL PROTECTED]
And finally: What was the configure line you used to configure PHP?
(should have asked this the very beginning :)
------------------------------------------------------------------------
[2003-10-03 19:36:37] [EMAIL PROTECTED]
I tested the script on RH 8 and 9 with their current packets.
I made some very strange observations today, I was able to get the
correct result, but I wasn't able to reproduce the steps exactly. I
still have the impression, that it is some strange interaction with the
shell and/or their variables. This may sound stupid, but it was the
only difference I saw when I got correct results. Btw. I'm using tcsh,
popen seems to use /bin/sh.
RH8 RH9
--- ---
gcc 3.2-7 3.2.2-5
glibc 2.3.2 same
bash 2.0.5b same
tcsh 6.12 same
------------------------------------------------------------------------
[2003-10-03 19:17:17] [EMAIL PROTECTED]
Exactly what linux version is this with?
What glibc? Gcc? etc..
------------------------------------------------------------------------
[2003-10-03 11:10:08] [EMAIL PROTECTED]
No change, I still get the Actual result (with fgets).
------------------------------------------------------------------------
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/25727
--
Edit this bug report at http://bugs.php.net/?id=25727&edit=1