|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-03 09:13 UTC] jani@php.net
[2007-09-11 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
Description: ------------ Don't know, if this is a bug in the "getimagesize()" function. The "php_getimagetype()" compares just 3 bytes of the 4-byte array. Source code: /ext/standard/image.c PHPAPI int php_getimagetype(php_stream * stream, char *filetype TSRMLS_DC) { ... PHPAPI const char php_sig_psd[4] = {'8', 'B', 'P', 'S'}; ... } else if (!memcmp(filetype, php_sig_psd, 3)) { ... }