php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #454 System command truncates arguments
Submitted: 1998-06-12 02:12 UTC Modified: 1998-06-24 12:33 UTC
From: delmendo at cymitar Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Linux 4.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: delmendo at cymitar
New email:
PHP Version: OS:

 

 [1998-06-12 02:12 UTC] delmendo at cymitar
when I attempt to 
do something like
$command="prog arg1 arg2 arg3";
<?php $output=@system(EscapeShellCmd($command),$ret_val);?>

only the first letter of arg1 is actually sent to the program.
I have printed the  $command before and after and the string is correct.

I am running this under safe mode if that makes a difference

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-24 12:33 UTC] rasmus
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jan 04 22:01:28 2025 UTC