From: opc at andired dot net
Operating system: Red Hat 9.0
PHP version: Irrelevant
PHP Bug Type: *General Issues
Bug description: System Don't Work

Description:
------------
I use the next command
+---------------
if (system("/usr/bin/htpasswd -b /home/var/key_file $user1 $clave1")) {
echo "Update File"; } else {
echo "Error !!"; }
+-----------------
This work very good in other system (RedHat 7.2), but don't understand why
don't work in my new server Linux Redhat ver 9.0 with PHP 4.2.2 and Apache
2.0.

Reproduce code:
---------------
if (system("/usr/bin/htpasswd -b /home/var/key_file $user1 $clave1")) {
echo "Update File"; } else {
echo "Error !!"; }

Expected result:
----------------
Print in the screen "Update File"

Actual result:
--------------
Print in the screen "Error"

--
Edit bug report at [url]http://bugs.php.net/?id=26023&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26023&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26023&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26023&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26023&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26023&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26023&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26023&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26023&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26023&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26023&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26023&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26023&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26023&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26023&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26023&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26023&r=float[/url]