Doc #63329 [NEW]: Read Error

From: Date: Mon, 22 Oct 2012 06:52:59 +0000
Subject: Doc #63329 [NEW]: Read Error
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8990@lists.php.net to get a copy of this message
From: pam at metanet dot ch Operating system: Any PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Read Error Description: ------------ --- From manual page: http://www.php.net/function.exif-imagetype#refsect1-function.exif-imagetype-returnvalues --- Can you propably write in the php doc that if the file is smaller than 11 bytes and you call the function exif_imagetype() for it, there is a "Read Error!" thrown. Test script: --------------- <?php // Throws "Read Error!" $returnValue = exif_imagetype('less11bytes.txt'); var_dump($returnValue); // Workaround against a "Read Error!" $returnValue = (filesize('less11bytes.txt') > 11)?exif_imagetype('less11bytes.txt'):false; var_dump($returnValue); ?> Expected result: ---------------- Notice: exif_imagetype() [function.exif-imagetype]: Read error! in C:\xampp\htdocs\test.php on line 12 bool(false) bool(false) -- Edit bug report at https://bugs.php.net/bug.php?id=63329&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63329&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63329&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63329&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63329&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63329&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63329&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63329&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63329&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63329&r=support Expected behavior: https://bugs.php.net/fix.php?id=63329&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63329&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63329&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63329&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63329&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63329&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63329&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63329&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63329&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63329&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63329&r=mysqlcfg

« previous php.doc.bugs (#8990) next »