php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10500 Misbehaving function
Submitted: 2001-04-25 17:42 UTC Modified: 2001-06-12 03:59 UTC
From: dragan at marisol-sys dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.4pl1 OS: Win98 SE
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: dragan at marisol-sys dot com
New email:
PHP Version: OS:

 

 [2001-04-25 17:42 UTC] dragan at marisol-sys dot com
This is exactly the same problem as bug #3627.

OS: Win98 SE
Running Apache Server 1.3.9 with PHP 4.0.4pl1. I'm trying to upload a 10MB file onto the FTP server.

PHP 4.0.4pl1 has been downloaded precompiled from www.php.net.

PHP.INI fraction:
max_execution_time=2400
memory_limit=60M
post_max_size=20M
upload_max_filesize=20M

The apache server will dump two lines into the error.log and ftp file transfer will die (server stays intact):

Premature end of script headers: c:/bin/php/php.exe
FATAL:  erealloc():  Unable to allocate 5884001 bytes

If I try to send the file <= 5M it is working fine and fast.

Thanks,
Dragan

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-25 17:49 UTC] dragan at marisol-sys dot com
It appears to be that 5884001 bytes (or so) is the upper limit of the file size -- doesn't matter what the php.ini options are.

I tried even rebooting the whole machine after the applied changes (well, Microsoft tactics) -- no luck.

 [2001-05-18 04:45 UTC] jmoore@php.net
can you check that your php.ini file is actaully being read? This works fine for me. Also please upgrade to 4.0.5 or latest CVS and check that this is still the case.

Thanks.

- James
 [2001-06-12 03:59 UTC] sniper@php.net
No feedback, old version.

 [2002-04-12 18:52 UTC] juric at pit dot lv
fdaadffdaI use php 4.1.2( in apache that apears like 4.1.3) and apache server 1.3.22. PHP like module of Apache...
In config file all is OK, but when I upload the file larger then 5mb I have the same problem:
FATAL:  erealloc():  Unable to allocate 5780001 bytes
The same problem was with older versions of PHP and Apache...
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 12:01:26 2019 UTC