#19322 [Opn->Fbk]: system() call returns undefined function w/Apache-2.0.40

From: Date: Wed, 11 Sep 2002 13:23:09 +0000
Subject: #19322 [Opn->Fbk]: system() call returns undefined function w/Apache-2.0.40
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19033@lists.php.net to get a copy of this message
ID: 19322 Updated by: sniper@php.net Reported By: danne@wiberg.nu -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: FreeBSD 4.6.2 PHP Version: 4.2.3 New Comment: So it's yet another apache2 problem then. Could you also try this snapshot: http://snaps.php.net/php4-latest.tar.gz Previous Comments: ------------------------------------------------------------------------ [2002-09-11 00:50:10] danne@wiberg.nu Using --with-apxs2 --with-tsrm-pth same problem. Only --with-apxs2 doesn't work, se below: Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/libexec/apache2/libphp4.so: Undefined symbol "pthread_getspecific" ------------------------------------------------------------------------ [2002-09-11 00:18:14] danne@wiberg.nu +--------------------------------------------------------------------+ | *** WARNING *** | | | | In order to build PHP as a Apache2 module on FreeBSD, you have to | | add --with-tsrm-pth to your ./configure line. Therefore you need | | to install gnu-pth from /usr/ports/devel/pth. | +--------------------------------------------------------------------+ Should I include this also? ------------------------------------------------------------------------ [2002-09-10 19:48:30] sniper@php.net Can you try compiling a new apache2 module from _clean_ sources (fresh download from www.php.net :) and only include the minimum amount of configure options. (ie. just the --with-apxs2 one) ------------------------------------------------------------------------ [2002-09-10 00:26:23] danne@wiberg.nu I just compiled php standalone, it worked, no undefined function. ------------------------------------------------------------------------ [2002-09-10 00:15:18] danne@wiberg.nu My script: <? $command='/sbin/ping -c 1 www.sunet.se'; passthru($command); /* This works */ exec($command); /* This works */ system($command); /* This gives undefined function */ ?> My output: PING www.sunet.se (192.36.125.18): 56 data bytes 64 bytes from 192.36.125.18: icmp_seq=0 ttl=247 time=14.091 ms --- www.sunet.se ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 14.091/14.091/14.091/0.000 ms Fatal error: Call to undefined function: system() in /usr/local/www/data-dist/test.php on line 8 ------------------------------------------------------------------------ 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/19322 -- Edit this bug report at http://bugs.php.net/?id=19322&edit=1

« previous php.bugs (#19033) next »