php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2522 From some webserver readfile gets only a part of the page.
Submitted: 1999-10-14 10:08 UTC Modified: 2002-06-16 14:15 UTC
From: wessels at stockwatch dot de Assigned:
Status: Not a bug Package: Misbehaving function
PHP Version: 3.0.12 OS: Linux 2.2.10
Private report: No CVE-ID: None
 [1999-10-14 10:08 UTC] wessels at stockwatch dot de
I try to get a file with HTTP from a web server which is implemented in Visual
Basic using a TCP-Control for doing web server purposes. This server is
delivering HTML via HTTP to a php script, with php 3.0.5 running as an apache
1.3.6 module under Linux 2.2.10. The php script is fetching the files with
file().
But if I try to use php-3.0.12 or even php-4.0b2, ONLY THE FIRST ~1400 BYTES ARE
read.

I created a test script containing only the readfile(), build php-3.0.5,
php-3.0.12 and php-4.0b2 with the same configuration switches and the same
php3.ini/php.ini, and it happened exactly the same:
php-3.0.5 is getting the whole file,
php-3.0.12 and php-4.0b2 getting only ~1500 bytes.

The mentioned webserver is not public accessible, but I can run a copy of it for some time for debugging purposes if desired.
my configure line:
./configure  --enable-track-vars --without-gd --without-ttf --with-config-file-path=. 
php3.ini is the original -dist version.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 14:15 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 22:01:24 2019 UTC