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

From: Date: Wed, 11 Sep 2002 05:50:10 +0000
Subject: #19322 [Fbk->Opn]: system() call returns undefined function w/Apache-2.0.40
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19010@lists.php.net to get a copy of this message
ID: 19322 User updated by: danne@wiberg.nu Reported By: danne@wiberg.nu -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: FreeBSD 4.6.2 PHP Version: 4.2.3 New Comment: 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" Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-09-09 17:25:21] sniper@php.net Can you please attach a sample script here which shows this problem? Somehow I doubt this has anything to do with Apache2..but could you check if compiling a CGI and running the test script with it does the same? ------------------------------------------------------------------------ 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 (#19010) next »