From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.19
PHP version:      4.1.2
PHP Bug Type:     ZZiplib Related
Bug description:  Can't open zip file

I compiled PHP with zip-support and a script,
similar as the script in the PHP manual, does
not work.

This script gives "Document contains no data".

------ Script:
<h2>Zip test</h2>

<?php
$filepath = "/home/streamedit/www/beta/icons.zip";
$zip = zip_open( $filepath );
if ( $zip ) {
        while ($zip_entry = zip_read($zip)) {
                echo zip_entry_name( $zip_entry )."<br>\n";
        }
        zip_close($zip);
}

?>
------ end script

------ $ ls -l /home/streamedit/www/beta/icons.zip

-rw-r--r--    1 streamed streamed     4436 May 23 11:58
/home/streamedit/www/beta/icons.zip

------ uname -a

Linux northshore 2.2.19 #1 Thu Nov 1 19:52:06 EST 2001 i686 unknown

------ phpinfo()

Configure Command:  './configure' '--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-zip'


-- 
Edit bug report at http://bugs.php.net/?id=17382&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17382&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17382&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17382&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17382&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17382&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17382&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17382&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17382&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17382&r=globals

Reply via email to