mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-13 06:14:37 +02:00
Fix support entry name '0'
This commit is contained in:
@@ -401,7 +401,7 @@ class ZipFile implements \Countable, \ArrayAccess, \Iterator, ZipConstants
|
||||
*/
|
||||
public static function openFromString($data)
|
||||
{
|
||||
if (empty($data)) {
|
||||
if (null === $data || strlen($data) === 0) {
|
||||
throw new IllegalArgumentException("Data not available");
|
||||
}
|
||||
if (!($handle = fopen('php://temp', 'r+b'))) {
|
||||
|
Reference in New Issue
Block a user