php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62445 Can't install pecl zip extension
Submitted: 2012-06-29 03:00 UTC Modified: 2015-07-19 04:22 UTC
Votes:13
Avg. Score:4.1 ± 1.0
Reproduced:12 of 12 (100.0%)
Same Version:6 (50.0%)
Same OS:2 (16.7%)
From: driveparty at gmail dot com Assigned: pajoye (profile)
Status: No Feedback Package: zip (PECL)
PHP Version: 5.4.4 OS: Mac OS X 10.7.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: driveparty at gmail dot com
New email:
PHP Version: OS:

 

 [2012-06-29 03:00 UTC] driveparty at gmail dot com
Description:
------------
I'm trying to execute "pecl install zip", but it fails with the following 
message:

7 warnings and 18 errors generated.
make: *** [php_zip.lo] Error 1
ERROR: `make' failed

Pecl from PHP 5.3.13 with the same environment builds and installs zip extension 
just fine without a warning.
Pecl xdebug for that same environment for PHP 5.4.4 built up and installed fine.

Test script:
---------------
Here is the listings of my ENV and php-config:

env:

TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/hq/wwsvj8xs7qjf9z9tc6_cgwbr0000gp/T/
Apple_PubSub_Socket_Render=/tmp/launch-o9Z3As/Render
TERM_PROGRAM_VERSION=303.2
OLDPWD=/usr/local/webstart/sw/php-5.4/etc
TERM_SESSION_ID=4EB69FC6-0F25-4F09-87BF-53A2EA4417EC
USER=gt
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/tmp/launch-PKqI8E/Listeners
Apple_Ubiquity_Message=/tmp/launch-24P02v/Apple_Ubiquity_Message
__CF_USER_TEXT_ENCODING=0x1F6:0:0
PATH=/usr/local/webstart/sw/autoconf/share:/usr/local/webstart/sw/php-5.4/etc:/usr/local/webstart/sw/php-5.4/bin:/usr/local/webstart/sw/php-5.4/include:/usr/local/webstart/sw/php-5.4/lib:/usr/local/webstart/sw/autoconf/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PWD=/usr/local/webstart/sw/php-5.4/bin
LANG=ru_RU.UTF-8
HOME=/Users/gt
SHLVL=1
LOGNAME=gt
DISPLAY=/tmp/launch-WJBsbV/org.x:0
PHP_AUTOCONF=/usr/local/webstart/sw/autoconf/bin/autoconf
_=/usr/bin/env

php-config:

Options:
  --prefix            [/usr/local/webstart/sw/php-5.4]
  --includes          [-I/usr/local/webstart/sw/php-5.4/include/php -I/usr/local/webstart/sw/php-5.4/include/php/main -I/usr/local/webstart/sw/php-5.4/include/php/TSRM -I/usr/local/webstart/sw/php-5.4/include/php/Zend -I/usr/local/webstart/sw/php-5.4/include/php/ext -I/usr/local/webstart/sw/php-5.4/include/php/ext/date/lib]
  --ldflags           [ -L/usr/local/webstart/sw/bdb//lib -L/usr/local/webstart/sw/lib-jpeg/lib -L/usr/local/webstart/sw/lib-png/lib -L/usr/local/webstart/sw/freetype/lib -L/usr/local/webstart/sw/gettext/lib -L/usr/local/webstart/sw/lib-iconv/lib -L/usr/local/webstart/sw/openldap/lib -L/usr/local/webstart/sw/lib-mcrypt/lib -L/usr/local/webstart/sw/freetds/lib -L/usr/local/webstart/sw/mysql/lib/mysql -L/usr/local/webstart/sw/postgresql/lib]
  --libs              [  -lexslt -lresolv -lpq -liodbc -lmysqlclient -lsybdb -lmcrypt -lltdl -lldap -llber -liconv -liconv -lintl -lfreetype -lpng -lz -ljpeg -lcrypto -lssl -lcrypto -ldb-4.4 -lcurl -lbz2 -lz -lcrypto -lssl -lcrypto -lm  -lxml2 -lz -licucore -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lxml2 -lz -licucore -lm -lmysqlclient -lz -lm -liodbc -lmysqlclient -lz -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxslt -lxml2 -lz -licucore -lm ]
  --extension-dir     [/usr/local/webstart/sw/php-5.4/lib/php/extensions/no-debug-non-zts-20100525]
  --include-dir       [/usr/local/webstart/sw/php-5.4/include/php]
  --man-dir           [/usr/local/webstart/sw/php-5.4/php/man]
  --php-binary        [/usr/local/webstart/sw/php-5.4/bin/php]
  --php-sapis         [ apache2handler cli cgi]
  --configure-options [--prefix=/usr/local/webstart/sw/php-5.4 --with-config-file-path=/usr/local/webstart/sw/php-5.4 --with-apxs2=/usr/local/webstart/sw/apache2/bin/apxs --with-db4=/usr/local/webstart/sw/bdb/ --with-kerberos=/usr --with-mcrypt=/usr/local/webstart/sw/lib-mcrypt --with-mhash=/usr/local/webstart/sw/mhash --with-ldap=/usr/local/webstart/sw/openldap --with-pgsql=/usr/local/webstart/sw/postgresql --with-mysql=/usr/local/webstart/sw/mysql --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/local/webstart/sw/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/webstart/sw/mysql --with-iodbc=/usr --with-zlib-dir=/usr --with-bz2 --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-shmop --enable-sockets --enable-mbstring --with-gettext=/usr/local/webstart/sw/gettext --enable-exif --with-jpeg-dir=/usr/local/webstart/sw/lib-jpeg --with-png-dir=/usr/local/webstart/sw/lib-png --with-freetype-dir=/usr/local/webstart/sw/freetype --with-gd --enable-gd-native-ttf --with-curl=/usr --enable-ftp --disable-rpath --with-xsl --enable-soap --enable-bcmath --enable-calendar --enable-cli --disable-debug --with-openssl --with-xmlrpc --with-iconv=/usr/local/webstart/sw/lib-iconv --with-mssql=/usr/local/webstart/sw/freetds]
  --version           [5.4.4]
  --vernum            [50404]

Expected result:
----------------
Just built and installed pecl zip extension

Actual result:
--------------
MBP31:bin gt$ sudo ./pecl install zip
downloading zip-1.10.2.tgz ...
Starting to download zip-1.10.2.tgz (236,912 bytes)
................................done: 236,912 bytes
61 source files, building
WARNING: php_bin /usr/local/webstart/sw/php-5.4/bin/php appears to have a suffix 
-5.4/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
building in /private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2
running: /private/tmp/pear/temp/zip/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking target system type... i386-apple-darwin11.4.0
checking for PHP prefix... /usr/local/webstart/sw/php-5.4
checking for PHP includes... -I/usr/local/webstart/sw/php-5.4/include/php -
I/usr/local/webstart/sw/php-5.4/include/php/main -I/usr/local/webstart/sw/php-
5.4/include/php/TSRM -I/usr/local/webstart/sw/php-5.4/include/php/Zend -
I/usr/local/webstart/sw/php-5.4/include/php/ext -I/usr/local/webstart/sw/php-
5.4/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/webstart/sw/php-
5.4/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/webstart/sw/php-
5.4/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate 
PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for zip archive read/writesupport... yes, shared
checking for the location of libz... no
checking pcre install prefix... no
checking for the location of zlib... /usr
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2/libtool --
mode=compile cc  -I. -I/private/tmp/pear/temp/zip -DPHP_ATOM_INC -
I/private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2/include -
I/private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2/main -
I/private/tmp/pear/temp/zip -I/usr/local/webstart/sw/php-5.4/include/php -
I/usr/local/webstart/sw/php-5.4/include/php/main -I/usr/local/webstart/sw/php-
5.4/include/php/TSRM -I/usr/local/webstart/sw/php-5.4/include/php/Zend -
I/usr/local/webstart/sw/php-5.4/include/php/ext -I/usr/local/webstart/sw/php-
5.4/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/private/tmp/pear/temp/zip/php_zip.c -o php_zip.lo
mkdir .libs
 cc -I. -I/private/tmp/pear/temp/zip -DPHP_ATOM_INC -
I/private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2/include -
I/private/tmp/pear/temp/pear-build-rootThQnjU/zip-1.10.2/main -
I/private/tmp/pear/temp/zip -I/usr/local/webstart/sw/php-5.4/include/php -
I/usr/local/webstart/sw/php-5.4/include/php/main -I/usr/local/webstart/sw/php-
5.4/include/php/TSRM -I/usr/local/webstart/sw/php-5.4/include/php/Zend -
I/usr/local/webstart/sw/php-5.4/include/php/ext -I/usr/local/webstart/sw/php-
5.4/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/private/tmp/pear/temp/zip/php_zip.c  -fno-common -DPIC -o .libs/php_zip.o
In file included from /private/tmp/pear/temp/zip/php_zip.c:31:
/private/tmp/pear/temp/zip/php_zip.h:48:10: warning: 'OPENBASEDIR_CHECKPATH' 
macro redefined
# define OPENBASEDIR_CHECKPATH(filename) \
         ^
/usr/local/webstart/sw/php-5.4/include/php/main/fopen_wrappers.h:42:9: note: 
previous definition is here
#define OPENBASEDIR_CHECKPATH(filename) \
        ^
/private/tmp/pear/temp/zip/php_zip.c:185:73: warning: incompatible pointer types 
passing 'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long *') 
[-Wincompatible-pointer-types]
                php_basename(path_cleaned, path_cleaned_len, NULL, 0, 
&file_basename, (unsigned int *)&file_basename_len TSRMLS_CC);
                                                                                      
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/webstart/sw/php-5.4/include/php/ext/standard/php_string.h:128:105: 
note: passing argument to parameter 'p_len' here
PHPAPI void php_basename(const char *s, size_t len, char *suffix, size_t sufflen, 
char **p_ret, size_t *p_len TSRMLS_DC);
                                                                                                        
^
/private/tmp/pear/temp/zip/php_zip.c:187:7: error: no member named 'safe_mode' in 
'struct _php_core_globals'
                if (OPENBASEDIR_CHECKPATH(file_dirname_fullpath)) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:187:7: warning: implicit declaration of 
function 'php_checkuid' is invalid in C99 [-Wimplicit-function-declaration]
                if (OPENBASEDIR_CHECKPATH(file_dirname_fullpath)) {
                    ^
/private/tmp/pear/temp/zip/php_zip.h:49:22: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                            ^
/private/tmp/pear/temp/zip/php_zip.c:187:7: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
                if (OPENBASEDIR_CHECKPATH(file_dirname_fullpath)) {
                    ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:241:6: error: no member named 'safe_mode' in 
'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(fullpath)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:241:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(fullpath)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:291:6: error: no member named 'safe_mode' in 
'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:291:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:532:6: error: no member named 'safe_mode' in 
'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(cwd)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:532:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(cwd)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:594:6: error: no member named 'safe_mode' in 
'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(path)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:594:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(path)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:840:66: error: too few arguments to function 
call, expected 3, have 2
                retval = std_hnd->get_property_ptr_ptr(object, member TSRMLS_CC);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         ^
/private/tmp/pear/temp/zip/php_zip.c:883:65: error: too few arguments to function 
call, expected 4, have 3
                retval = std_hnd->read_property(object, member, type TSRMLS_CC);
                         ~~~~~~~~~~~~~~~~~~~~~~                               ^
/private/tmp/pear/temp/zip/php_zip.c:932:64: error: too few arguments to function 
call, expected 4, have 3
                retval = std_hnd->has_property(object, member, type TSRMLS_CC);
                         ~~~~~~~~~~~~~~~~~~~~~                               ^
/private/tmp/pear/temp/zip/php_zip.c:1044:53: error: no member named 
'default_properties' in 'struct _zend_class_entry'
        zend_hash_copy(intern->zo.properties, &class_type->default_properties, 
(copy_ctor_func_t) zval_add_ref,
                                               ~~~~~~~~~~  ^
/private/tmp/pear/temp/zip/php_zip.c:1147:6: error: no member named 'safe_mode' 
in 'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:1147:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:1436:6: error: no member named 'safe_mode' 
in 'struct _php_core_globals'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.h:49:6: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
            ^
/usr/local/webstart/sw/php-5.4/include/php/main/php_globals.h:32:30: note: 
expanded from macro 'PG'
# define PG(v) (core_globals.v)
                ~~~~~~~~~~~~ ^
/private/tmp/pear/temp/zip/php_zip.c:1436:6: error: use of undeclared identifier 
'CHECKUID_CHECK_FILE_AND_DIR'
        if (OPENBASEDIR_CHECKPATH(filename)) {
            ^
/private/tmp/pear/temp/zip/php_zip.h:49:51: note: expanded from macro 
'OPENBASEDIR_CHECKPATH'
        (PG(safe_mode) && (!php_checkuid(filename, NULL, 
CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
                                                         ^
/private/tmp/pear/temp/zip/php_zip.c:1636:21: warning: incompatible pointer types 
passing 'unsigned int *' to parameter of type 'size_t *' (aka 'unsigned long *') 
[-Wincompatible-pointer-types]
                                                                        
&basename, (unsigned int *)&file_stripped_len TSRMLS_CC);
                                                                                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/webstart/sw/php-5.4/include/php/ext/standard/php_string.h:128:105: 
note: passing argument to parameter 'p_len' here
PHPAPI void php_basename(const char *s, size_t len, char *suffix, size_t sufflen, 
char **p_ret, size_t *p_len TSRMLS_DC);
                                                                                                        
^
/private/tmp/pear/temp/zip/php_zip.c:2580:43: warning: incompatible pointer types 
assigning to 'zend_object_get_property_ptr_ptr_t' (aka 'zval **(*)(zval *, zval 
*, const struct _zend_literal *)') from 'zval **(zval *, zval *)' [-
Wincompatible-pointer-types]
        zip_object_handlers.get_property_ptr_ptr = php_zip_get_property_ptr_ptr;
                                                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.c:2583:36: warning: incompatible pointer types 
assigning to 'zend_object_read_property_t' (aka 'zval *(*)(zval *, zval *, int, 
const struct _zend_literal *)') from 'zval *(zval *, zval *, int)' [-
Wincompatible-pointer-types]
        zip_object_handlers.read_property       = php_zip_read_property;
                                                ^ ~~~~~~~~~~~~~~~~~~~~~
/private/tmp/pear/temp/zip/php_zip.c:2584:35: warning: incompatible pointer types 
assigning to 'zend_object_has_property_t' (aka 'int (*)(zval *, zval *, int, 
const struct _zend_literal *)') from 'int (zval *, zval *, int)' [-Wincompatible-
pointer-types]
        zip_object_handlers.has_property        = php_zip_has_property;
                                                ^ ~~~~~~~~~~~~~~~~~~~~
7 warnings and 18 errors generated.
make: *** [php_zip.lo] Error 1
ERROR: `make' failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-29 06:26 UTC] pajoye@php.net
The PHP 5.4.4 bundled zip extension is more recent that the last pecl release and 
support 5.4 (obviously).

A release will be done soon via PECL too.
 [2012-06-29 06:26 UTC] pajoye@php.net
-Assigned To: +Assigned To: pajoye
 [2015-07-08 14:58 UTC] cmb@php.net
-Package: Zip Related +Package: zip
 [2015-07-08 14:58 UTC] cmb@php.net
Most likely this problem has been resolved in the meantime, or are
there still issues with recent pecl/zip versions?
 [2015-07-08 14:58 UTC] cmb@php.net
-Status: Assigned +Status: Feedback
 [2015-07-19 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC