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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 32 = ?
Subscribe to this entry?

 
 [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: Sat Jun 22 05:01:30 2024 UTC