php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12937 exec does not return value if only one char
Submitted: 2001-08-23 22:36 UTC Modified: 2001-08-23 22:49 UTC
From: simap at scruznet dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 4.0.4pl1 OS: linux
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: simap at scruznet dot com
New email:
PHP Version: OS:

 

 [2001-08-23 22:36 UTC] simap at scruznet dot com
exec() does not seem to return a value when the command it 
executes only outputs only one character.

i have an command line ini file editor i am using via exec.

$num1 = exec(escapeshellcmd("iniedit /var/www/html/test.ini 
-s main -k num1 -r"));

if the ini file is set

num1=46

normal command line output "46"
works fine $num1 = 46, but for 

num1=4

normal command line output "4"
however $num1 does not contain a value.

i am able to get around this issue by using passthru()
thanks for php! :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-23 22:49 UTC] joey@php.net
This is fixed. Try a snapshot: http://snaps.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 21:01:27 2024 UTC