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

From: Date: Tue, 12 Dec 2000 12:44:04 +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-40963@lists.php.net to get a copy of this message
On Tue, 12 Dec 2000, Stanislav Malyshev wrote: >JT>> >This outputs instead of ~3Mb file only 433 bytes ... >JT>> > >JT>> >Is this my bug ???? >JT>> >JT>> I think it's bug in PHP. But only when used on Windows. >JT>> >JT>> ext/standard/file.c: >JT>> -----8<---------------------------------------------- >JT>> fp = php_fopen_wrapper((*arg1)->value.str.val,"r", >JT>> use_include_path|ENFORCE_SAFE_MODE, &issock, &socketd, NULL); >JT>> ---8<------------------------------------------------ >JT>> >JT>> Shouldn't that "r" be "rb" instead? > >There are a lot of "r"'s there. Anyone cares to explain why they aren't >"rb"'s? Wild guess: They didn't think about windows when this was done ? =) ( I don't know shit about programming in Windows though.. :) --Jani

« previous php.dev (#40963) next »