PHP 4.0 Bug #4597 Updated: GetImageSize fails under certain gif's

From: Date: Mon, 29 May 2000 11:41:32 +0000
Subject: PHP 4.0 Bug #4597 Updated: GetImageSize fails under certain gif's
Groups: php.dev 
Request: Send a blank email to php-dev+get-19667@lists.php.net to get a copy of this message
ID: 4597 Updated by: thies Reported By: ralph@ceenet.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: ok, ther problem is that fwrite is a bufferd call, so by the time you call GetImageSize the file is not yet written to disk. as there is no fflush() call in PHP 4 (yet) you have 2 options. call set_file_buffer($fd,0); to disable libc buffering on that file -or- (preferred) close the file *before* you call GetImageSize, that way you're guranteed that the file is written to disk! Full Bug description available at: http://bugs.php.net/version4/?id=4597

« previous php.dev (#19667) next »