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

From: Date: Wed, 11 Sep 2002 00:48:31 +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-18997@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: 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) Previous Comments: ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ [2002-09-09 15:02:17] danne@wiberg.nu system() returns undefined function, but exec(), passthrou() and the backtick operator works. Running Apache-2.0.40. Compile info: System FreeBSD mspiggy.wiberg.nu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Sun Aug 25 20:08:18 CEST 2002 root@mspiggy.wiberg.nu:/usr/src/sys/compile/MSPIGGY i386 Build Date Sep 9 2002 19:44:44 Configure Command './configure' '--with-apxs2=/usr/local/sbin/apxs' '--with-tsrm-pth' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--with-gd=/usr/local' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--with-bz2=/usr' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-pdflib=/usr/local' '--with-zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--with-ldap=/usr/local' '--with-openssl=/usr' '--with-snmp=/usr/local' '--enable-ucd-snmp-hack' '--with-openssl=/usr' '--with-expat-dir=/usr/local' '--enable-ftp' '--with-iconv=/usr/local' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid' '--prefix=/usr/local' 'i386-portbld-freebsd4.6.2' Server API Apache 2.0 Filter Virtual Directory Support enabled Configuration File (php.ini) Path /usr/local/etc/php.ini Debug Build no Thread Safety enabled ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19322&edit=1

« previous php.bugs (#18997) next »