|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-01 02:30 UTC] kalle@php.net
-Package: GD related
+Package: GetImageSize related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ getimagesize() could support stream resources so the test script would actually work. The test script itself is rather pointless of course as you could argue that I could just use the http uri in getimagesize() which would work. But in case you have only the already opened stream it would be very convenient to have getimagesize work on that. Test script: --------------- <?php // as described above this line is just to aquire a stream, as example $resource = fopen('http://bugs.php.net/images/logo.gif', 'r'); $imagesize = getimagesize($resource); var_dump($imagesize); ?>