note 86280 added to function.zip-open
| From: | John at osu1 dot php dot net | Date: | Fri, 10 Oct 2008 16:47:13 +0000 |
| Subject: | note 86280 added to function.zip-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145249@lists.php.net to get a copy of this message | ||
In response to saulius at solmetra dot lt:
In my testing I have found that PHP treats odf and ods files as zip archives, and probably others.
Therefore, is_resource returns true when you try to open these files as a zip. For that reason I
think is_resource is not a good way to determine if a file is a zip.
----
Server IP: 92.48.74.199
Probable Submitter: 83.104.39.199
----
Manual Page -- http://www.php.net/manual/en/function.zip-open.php
Edit -- https://master.php.net/note/edit/86280
Del: integrated -- https://master.php.net/note/delete/86280/integrated
Del: useless -- https://master.php.net/note/delete/86280/useless
Del: bad code -- https://master.php.net/note/delete/86280/bad+code
Del: spam -- https://master.php.net/note/delete/86280/spam
Del: non-english -- https://master.php.net/note/delete/86280/non-english
Del: in docs -- https://master.php.net/note/delete/86280/in+docs
Del: other reasons-- https://master.php.net/note/delete/86280
Reject -- https://master.php.net/note/reject/86280
Search -- https://master.php.net/manage/user-notes.php