[PHP-DEV] PHP 4.0 Bug #4597 Updated: GetImageSize fails under certain gif's From: Bug Database (php-dev <email protected>)
Date: 05/29/00

ID: 4597
Updated by: thies
Reported By: ralph <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>