Req #68499 [NEW]: getimagesize could support stream resources

From: Date: Tue, 25 Nov 2014 18:33:53 +0000
Subject: Req #68499 [NEW]: getimagesize could support stream resources
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188789@lists.php.net to get a copy of this message
From: christian at kitsunet dot com Operating system: PHP version: Irrelevant Package: GD related Bug Type: Feature/Change Request Bug description:getimagesize could support stream resources 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); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=68499&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68499&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68499&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68499&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68499&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68499&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68499&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68499&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68499&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68499&r=support Expected behavior: https://bugs.php.net/fix.php?id=68499&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68499&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68499&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68499&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68499&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68499&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68499&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68499&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68499&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68499&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68499&r=mysqlcfg

« previous php.bugs (#188789) next »