Re: PHP 4.0 Bug #8206: Output of bigger file produce only a small piece

From: Date: Tue, 12 Dec 2000 12:37:31 +0000
Subject: Re: PHP 4.0 Bug #8206: Output of bigger file produce only a small piece
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40959@lists.php.net to get a copy of this message
On 12 Dec 2000 nexus@ndiasb.kiev.ua wrote: >From: nexus@ndiasb.kiev.ua >Operating system: WIN2000/IIS5.0 PHP - ISAPI >PHP version: 4.0.3pl1 >PHP Bug Type: Scripting Engine problem >Bug description: Output of bigger file produce only a small piece > ><? >Header("Content-type: audio/mpeg;filename"); >Header("Content-Disposition: attachment; filename=$a[1].mp3"); >readfile("e:\mp3\atb.mp3"); >?> > >This outputs instead of ~3Mb file only 433 bytes ... > >Is this my bug ???? I think it's bug in PHP. But only when used on Windows. ext/standard/file.c: -----8<---------------------------------------------- fp = php_fopen_wrapper((*arg1)->value.str.val,"r", use_include_path|ENFORCE_SAFE_MODE, &issock, &socketd, NULL); ---8<------------------------------------------------ Shouldn't that "r" be "rb" instead? --Jani

« previous php.dev (#40959) next »