ID: 20963 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Filesystem function related Operating System: Linux Redhat 8.0 PHP Version: 4.2.2 New Comment:
Please use the PHP 4.3.0RC3 or the snapshots avaliable from http://snaps.php.net/ when testing. Version 4.3.0 contains numberous fixes and improvments not found in 4.2.3. Previous Comments: ------------------------------------------------------------------------ [2002-12-16 11:53:32] [EMAIL PROTECTED] FYI - I recompiled and reinstalled the source distributions of PHP (4.2.3) and Apache (2.0.43) and files uploaded now reflect the correct size. I uninstalled all RPM versions and recompiled from scratch with source. ------------------------------------------------------------------------ [2002-12-12 11:13:45] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version 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. ------------------------------------------------------------------------ [2002-12-12 10:34:02] [EMAIL PROTECTED] I am trying to create a web-based upload/download center for our users using PHP 4.2.2 / RedHat 7.3 / Apache 2.0.40. All works well except when uploading files larger than approximately 1K. Larger files nearly double in size. For example, using the pages I am developing, a file uploaded from a win2k PC with the correct size of 700,416 bytes nearly doubles after upload to the server to 1,388,544 bytes. The file is then, of course, corrupted. This happens with all types of files (TXT, DOC, MDB, XLS, ZIP, etc). To check webserver/network functionality, I created a PERL 5.8.0 CGI script on the same webserver and uploaded the same file from the same win2k machine and file uploading works perfectly. No file size change or corruptions at all. Obviously, extra characters are being inserted somehow in the stream when using PHP, but from where and when I don't know. It may also be some type of improper CR/LF conversion during upload. I was even looking at the Character Sets defined in Apache, but the PERL 5.8.0 CGI script works correctly. Improper character translations by the Apache webserver should corrupt both PERL and PHP versions of the uploaded files shouldn't they? I am lost at this point. All help is greatly appreciated. Thanks. ########## PHP Compiled Modules ############ Running PHP 4.2.2 Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies [PHP Modules] yp xml wddx sysvshm sysvsem standard sockets shmop session pspell posix pcre openssl ncurses iconv gmp gettext gd ftp exif domxml dio dbx dba curl ctype calendar bz2 bcmath zlib [Zend Modules] ########## END PHP Compiled Modules ############ ########## Apache Compiled Modules ############ Compiled in modules: core.c prefork.c http_core.c mod_so.c ########## END Apache Compiled Modules ############ NOTE: PHP compiled as dynamic module ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20963&edit=1