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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-24 12:33 UTC] rasmus
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 11:01:28 2024 UTC