php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3670 exec don't work as expected
Submitted: 2000-02-29 18:08 UTC Modified: 2000-07-26 14:16 UTC
From: nestor at tiendalinux dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Debian GNU/Linux Potato kernel 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nestor at tiendalinux dot com
New email:
PHP Version: OS:

 

 [2000-02-29 18:08 UTC] nestor at tiendalinux dot com
The function exec, don't work as expected i use the same code in php3 and it always return the stdout of the program, but in php4 it don't work so i have to pass by reference an array , i.e. exec ("program", $array) for this to work, so i think there is a problem with the return value.

Thanks for your great work !!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 14:16 UTC] brad@php.net
exec should never output anything:

http://www.php.net/manual/html/function.exec.html
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 03:01:28 2024 UTC