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