PHP 4.0 Bug #7736: recode_file generates warning when input fh has received data from remote fh

From: Date: Fri, 10 Nov 2000 04:18:07 +0000
Subject: PHP 4.0 Bug #7736: recode_file generates warning when input fh has received data from remote fh
Groups: php.dev 
Request: Send a blank email to php-dev+get-37647@lists.php.net to get a copy of this message
From: zak@php.net Operating system: Mandrake Linux 7.1 PHP version: 4.0.3pl1 PHP Bug Type: Recode related Bug description: recode_file generates warning when input fh has received data from remote fh recode_file() generates a spurious warning when the 'input' file handle has had data sent to it from a file handle that references a remote system. Despite the warning, the recode attempt succeeds - converting between character sets and writing the data to the 'output' file handle See the script below. # Open a local file (instead of URL) and no warning is generated $input = fopen ('http://www.netscape.com/', 'r'); $tmp = tmpfile (); while (! feof ($input)) fwrite ($tmp, fgets ($input, 1024)); rewind ($tmp); recode_file ('us..flat', $tmp, tmpfile ()); -- Edit Bug report at: http://bugs.php.net/?id=7736&edit=1

« previous php.dev (#37647) next »