php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28299 system() unexpect behaviour
Submitted: 2004-05-06 14:07 UTC Modified: 2004-05-06 17:27 UTC
From: jon at moozaad dot co dot uk Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.4 OS: BSD Apache 1.3.29
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: jon at moozaad dot co dot uk
New email:
PHP Version: OS:

 

 [2004-05-06 14:07 UTC] jon at moozaad dot co dot uk
Description:
------------
Non-string passed in system() call. I was expecting it to spit out an error. I didn't notice until I went to add switches to the command.

Same behaviour with exec().
I expect it to be a language syntax problem.

Just incase you're missed it, theres no "" '' `` or $ on the front or around the first argument.

Reproduce code:
---------------
<? echo "<br>::".system(quota)."::<br>"; ?>

Expected result:
----------------
a warning/error, argument is invalid

Actual result:
--------------
Disk quotas for user wargames (uid 1009): Filesystem usage quota limit grace files quota limit grace /usr 55580 102400 102400 1167 0 0 
:: /usr 55580 102400 102400 1167 0 0::

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-06 14:41 UTC] wez@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 [2004-05-06 17:27 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Turn up your error reporting level to E_ALL and you'll see the notice.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 15:01:31 2024 UTC