From:             [EMAIL PROTECTED]
Operating system: Redhat 7.3
PHP version:      4.2.3
PHP Bug Type:     Scripting Engine problem
Bug description:  command system(),passthru, etc error

#!/usr/bin/php -q
<?

system("ls");

?>

output
[sono.jalin@www conf]$ ./test.php
sh: 1/ls: No such file or directory

[sono.jalin@www conf]$

list modules :
[sono.jalin@www conf]$ php -m
Running PHP 4.2.3
Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies

[PHP Modules]
yp
xml
wddx
sysvshm
sysvsem
standard
sockets
shmop
session
pspell
posix
pcre
openssl
ncurses
iconv
gmp
gettext
ftp
exif
domxml
dio
dbx
dba
curl
ctype
calendar
bz2
bcmath
zlib
session mm
mysql
snmp
pdf
gd

[Zend Modules]

information compile php-4.2.3
include 
# Patch to get around a dumb assumption that size_t is always 4 bytes
Patch0: php-4.2.1-64bit-iconv.patch
# Argh! openldap 2.1.x changed it's API! This is needed only for openldap
2.1.x and higher
Patch1: php-4.2.1-ldap-TSRM.patch
# Patch to tweak the default php.ini to something a little more unix like
Patch2: php-4.2.1-php.ini-dist.patch
# Patch to pass in -DUCD_COMPATIBLE to the net-snmp package
Patch3: php-4.2.1-snmp.patch
# Patch to prevent zts being compiled in
Patch7: php-4.2.2-disable-zts.patch

all patch based redhat patch

no gdb backtrace since this php is not core dump or something :)

note : 
php-4.2.2 under my system is working perfectly with command system(),
passthru, etc

thx
onOs
-- 
Edit bug report at http://bugs.php.net/?id=21571&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21571&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21571&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21571&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21571&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21571&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21571&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21571&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21571&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21571&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21571&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21571&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21571&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21571&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21571&r=gnused

Reply via email to