[wp-trac] [WordPress Trac] #12637: OS X-generated theme zips won't upload properly

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 19 05:02:13 UTC 2010


#12637: OS X-generated theme zips won't upload properly
--------------------------+-------------------------------------------------
 Reporter:  chrisbliss18  |       Owner:  dd32     
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  normal        |   Milestone:  3.0      
Component:  Filesystem    |     Version:  3.0      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by chrisbliss18):

 FYI: I did some digging on why the OS X-produced zip files fail the
 consistency check. The failure seems to be specific to the version and
 compile options of the PHP interpreter that is running the code.

 I freshly-compiled PHP from version 5.2.5 through 5.2.10 with the
 following config:

 ./configure  --with-zip --with-apxs2=/opt/lampp/bin/apxs --enable-inline-
 optimization --disable-debug --enable-bcmath --enable-calendar --enable-
 ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro
 --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-
 gd-native-ttf --with-ttf --enable-magic-quotes --enable-memory-limit
 --enable-shmop --disable-sigchild --enable-sysvsem --enable-sysvshm
 --enable-track-vars --enable-trans-sid --enable-wddx --enable-yp --with-
 ftp --without-xpm --with-zlib=yes --with-gd --with-imap-ssl --enable-
 sockets --enable-mbstring=all --enable-mbregex --enable-zend-multibyte
 --enable-exif --enable-soap --enable-pcntl --with-mime-magic --with-iconv
 --enable-dio

 Versions 5.2.5 and 5.2.6 both return a int(0) value on the
 ZipArchive::open call (when called with a OS X-generated zip file).
 Versions 5.2.8-5.2.10 all return true.

 However, I do have an example of a version 5.2.9 failing with the
 following compile options:

 './configure' '--prefix=/opt/lampp' '--with-apxs2=/opt/lampp/bin/apxs'
 '--with-config-file-path=/opt/lampp/etc' '--with-mysql=/opt/lampp'
 '--enable-inline-optimization' '--disable-debug' '--enable-bcmath'
 '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-
 path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect'
 '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-
 ttf' '--enable-magic-quotes' '--enable-memory-limit' '--enable-shmop'
 '--disable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-
 track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-yp' '--with-
 ftp' '--with-gdbm=/opt/lampp' '--with-jpeg-dir=/opt/lampp' '--with-png-
 dir=/opt/lampp' '--with-freetype-dir=/opt/lampp' '--without-xpm' '--with-
 zlib=yes' '--with-zlib-dir=/opt/lampp' '--with-openssl=/opt/lampp'
 '--with-expat-dir=/opt/lampp' '--enable-xslt=/opt/lampp' '--with-
 xsl=/opt/lampp' '--with-dom=/opt/lampp' '--with-ldap=/opt/lampp' '--with-
 ncurses=/opt/lampp' '--with-gd' '--with-imap-dir=/opt/lampp' '--with-imap-
 ssl' '--with-imap=/opt/lampp' '--with-gettext=/opt/lampp' '--with-
 mssql=/opt/lampp' '--with-sybase=/opt/lampp' '--with-
 interbase=shared,/opt/interbase' '--with-mysql-
 sock=/opt/lampp/var/mysql/mysql.sock' '--with-
 oci8=shared,instantclient,/opt/lampp/lib/instantclient' '--with-
 mcrypt=/opt/lampp' '--with-mhash=/opt/lampp' '--enable-sockets' '--enable-
 mbstring=all' '--with-curl=/opt/lampp' '--enable-mbregex' '--enable-zend-
 multibyte' '--enable-exif' '--with-bz2=/opt/lampp' '--with-
 sqlite=shared,/opt/lampp' '--with-libxml-dir=/opt/lampp' '--enable-soap'
 '--enable-pcntl' '--with-mysqli=/opt/lampp/bin/mysql_config' '--with-mime-
 magic' '--with-pgsql=shared,/opt/lampp/postgresql' '--with-iconv'
 '--enable-dio' '--with-pdo-mysql=/opt/lampp' '--with-pdo-
 pgsql=/opt/lampp/postgresql' '--with-pdo-sqlite' '--with-
 ming=shared,/opt/lampp'

 This PHP version was provided by XAMPP. I tried to compile PHP 5.2.9 with
 a variety of different options in order to determine the option that is
 the source of the issue in versions 5.2.8+, but I was unable to find it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12637#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list