php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11386 shell_exec and file size
Submitted: 2001-06-10 14:40 UTC Modified: 2001-06-12 02:47 UTC
From: annaz29 at hotmail dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.4pl1 OS: redhat linux
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: annaz29 at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-06-10 14:40 UTC] annaz29 at hotmail dot com
the command:/usr/local/bin/change_charset < input.html >output.html 

can be run correctly on the command line prompt after telnet to the server. 


but when I insert the below in to the php script, then the result not correctly. 
shell_exec ('/usr/local/bin/change_charset < input.html >output.html'); 

what's wrong is that the file input.html is 26K and output.html should be also about 26K, but in fact it is only 13K, obvious, the whole web page become a half page after performance shell_exec or exec. 

I have changed memory_limit to 18M and MAX_file_size to 6M in the file php.ini and restart apache, but no work at all. 

I think it may be a bug.

best regards

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-12 02:47 UTC] sniper@php.net
Impossible to know without knowing WHAT the change_charset
does. But you might wanna try putting set_time_limit(0);
in the beginning of the script..

--Jani

 [2001-06-12 02:47 UTC] sniper@php.net
Impossible to know without knowing WHAT the change_charset
does. But you might wanna try putting set_time_limit(0);
in the beginning of the script..

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 10 03:01:31 2024 UTC