php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45726 PHP_Archive / Archive.php missing
Submitted: 2008-08-05 13:53 UTC Modified: 2008-10-17 01:59 UTC
Votes:8
Avg. Score:4.5 ± 0.9
Reproduced:6 of 7 (85.7%)
Same Version:4 (66.7%)
Same OS:2 (33.3%)
From: Bjorn dot Wiberg at its dot uu dot se Assigned: helly (profile)
Status: Closed Package: PHAR related
PHP Version: 5.3CVS-2008-08-06 OS: *
Private report: No CVE-ID: None
 [2008-08-05 13:53 UTC] Bjorn dot Wiberg at its dot uu dot se
Description:
------------
PHP complains about Archive.php / PHP_Archive not being found during compilation.

Reproduce code:
---------------
#! /bin/sh
#
# Created by configure

LDFLAGS='-Wl,-bbigtoc' \
CC='gcc' \
'./configure' \
'--disable-fileinfo' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-cli' \
'--enable-dba' \
'--enable-dbase' \
'--enable-debug' \
'--enable-exif' \
'--enable-flatfile' \
'--enable-ftp' \
'--enable-gd-jis-conv' \
'--enable-gd-native-ttf' \
'--enable-inifile' \
'--enable-mbstring' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-soap' \
'--enable-sockets' \
'--enable-sqlite-utf8' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-wddx' \
'--enable-zip' \
'--enable-zend-multibyte' \
'--prefix=/apache/php' \
'--with-apxs2=/apache/bin/apxs' \
'--with-bz2' \
'--with-cdb' \
'--with-curl' \
'--with-freetype-dir' \
'--with-gd' \
'--with-gdbm' \
'--with-gettext' \
'--with-jpeg-dir' \
'--with-ldap' \
'--with-libxml-dir=/usr/local' \
'--with-mime-magic' \
'--with-mysql=mysqlnd' \
'--with-mysqli=mysqlnd' \
'--with-openssl=/opt/freeware' \
'--with-pdo-mysql=mysqlnd' \
'--with-png-dir' \
'--with-xmlrpc' \
'--with-xpm-dir' \
'--with-xsl' \
'--with-zlib' \
'--with-zlib-dir' \
"$@"

Followed by '/opt/freeware/bin/make' (GNU make).

Expected result:
----------------
No error message.

Actual result:
--------------
gcc -I/usr/include -g -fvisibility=hidden -O0 -Wall -Wl,-bbigtoc -Wl,-brtl -Wl,-bE:php.sym ext/ereg/.libs/ereg.o ext/ereg/regex/.libs/regcomp.o ext/ereg/regex/.libs/regexec.o ext/ereg/regex/.libs/regerror.o ext/ereg/regex/.libs/regfree.o ext/libxml/.libs/libxml.o ext/openssl/.libs/openssl.o ext/openssl/.libs/xp_ssl.o ext/pcre/pcrelib/.libs/pcre_chartables.o ext/pcre/pcrelib/.libs/pcre_ucp_searchfuncs.o ext/pcre/pcrelib/.libs/pcre_compile.o ext/pcre/pcrelib/.libs/pcre_config.o ext/pcre/pcrelib/.libs/pcre_exec.o ext/pcre/pcrelib/.libs/pcre_fullinfo.o ext/pcre/pcrelib/.libs/pcre_get.o ext/pcre/pcrelib/.libs/pcre_globals.o ext/pcre/pcrelib/.libs/pcre_info.o ext/pcre/pcrelib/.libs/pcre_maketables.o ext/pcre/pcrelib/.libs/pcre_newline.o ext/pcre/pcrelib/.libs/pcre_ord2utf8.o ext/pcre/pcrelib/.libs/pcre_refcount.o ext/pcre/pcrelib/.libs/pcre_study.o ext/pcre/pcrelib/.libs/pcre_tables.o ext/pcre/pcrelib/.libs/pcre_try_flipped.o ext/pcre/pcrelib/.libs/pcre_valid_utf8.o ext/pcre/pcrelib/.libs/pcre_version.o ext/pcre/pcrelib/.libs/pcre_xclass.o ext/pcre/.libs/php_pcre.o ext/zlib/.libs/zlib.o ext/zlib/.libs/zlib_fopen_wrapper.o ext/zlib/.libs/zlib_filter.o ext/bcmath/.libs/bcmath.o ext/bcmath/libbcmath/src/.libs/add.o ext/bcmath/libbcmath/src/.libs/div.o ext/bcmath/libbcmath/src/.libs/init.o ext/bcmath/libbcmath/src/.libs/neg.o ext/bcmath/libbcmath/src/.libs/outofmem.o ext/bcmath/libbcmath/src/.libs/raisemod.o ext/bcmath/libbcmath/src/.libs/rt.o ext/bcmath/libbcmath/src/.libs/sub.o ext/bcmath/libbcmath/src/.libs/compare.o ext/bcmath/libbcmath/src/.libs/divmod.o ext/bcmath/libbcmath/src/.libs/int2num.o ext/bcmath/libbcmath/src/.libs/num2long.o ext/bcmath/libbcmath/src/.libs/output.o ext/bcmath/libbcmath/src/.libs/recmul.o ext/bcmath/libbcmath/src/.libs/sqrt.o ext/bcmath/libbcmath/src/.libs/zero.o ext/bcmath/libbcmath/src/.libs/debug.o ext/bcmath/libbcmath/src/.libs/doaddsub.o ext/bcmath/libbcmath/src/.libs/nearzero.o ext/bcmath/libbcmath/src/.libs/num2str.o ext/bcmath/libbcmath/src/.libs/raise.o ext/bcmath/libbcmath/src/.libs/rmzero.o ext/bcmath/libbcmath/src/.libs/str2num.o ext/bz2/.libs/bz2.o ext/bz2/.libs/bz2_filter.o ext/calendar/.libs/calendar.o ext/calendar/.libs/dow.o ext/calendar/.libs/french.o ext/calendar/.libs/gregor.o ext/calendar/.libs/jewish.o ext/calendar/.libs/julian.o ext/calendar/.libs/easter.o ext/calendar/.libs/cal_unix.o ext/ctype/.libs/ctype.o ext/curl/.libs/interface.o ext/curl/.libs/multi.o ext/curl/.libs/streams.o ext/date/.libs/php_date.o ext/date/lib/.libs/astro.o ext/date/lib/.libs/dow.o ext/date/lib/.libs/parse_date.o ext/date/lib/.libs/parse_tz.o ext/date/lib/.libs/timelib.o ext/date/lib/.libs/tm2unixtime.o ext/date/lib/.libs/unixtime2tm.o ext/date/lib/.libs/parse_iso_intervals.o ext/date/lib/.libs/interval.o ext/dba/.libs/dba.o ext/dba/.libs/dba_cdb.o ext/dba/.libs/dba_dbm.o ext/dba/.libs/dba_gdbm.o ext/dba/.libs/dba_ndbm.o ext/dba/.libs/dba_db1.o ext/dba/.libs/dba_db2.o ext/dba/.libs/dba_db3.o ext/dba/.libs/dba_db4.o ext/dba/.libs/dba_flatfile.o ext/dba/.libs/dba_inifile.o ext/dba/.libs/dba_qdbm.o ext/dba/libcdb/.libs/cdb.o ext/dba/libcdb/.libs/cdb_make.o ext/dba/libcdb/.libs/uint32.o ext/dba/libflatfile/.libs/flatfile.o ext/dba/libinifile/.libs/inifile.o ext/dbase/.libs/dbf_head.o ext/dbase/.libs/dbf_rec.o ext/dbase/.libs/dbf_misc.o ext/dbase/.libs/dbf_ndx.o ext/dbase/.libs/dbase.o ext/dom/.libs/php_dom.o ext/dom/.libs/attr.o ext/dom/.libs/document.o ext/dom/.libs/domerrorhandler.o ext/dom/.libs/domstringlist.o ext/dom/.libs/domexception.o ext/dom/.libs/namelist.o ext/dom/.libs/processinginstruction.o ext/dom/.libs/cdatasection.o ext/dom/.libs/documentfragment.o ext/dom/.libs/domimplementation.o ext/dom/.libs/element.o ext/dom/.libs/node.o ext/dom/.libs/string_extend.o ext/dom/.libs/characterdata.o ext/dom/.libs/documenttype.o ext/dom/.libs/domimplementationlist.o ext/dom/.libs/entity.o ext/dom/.libs/nodelist.o ext/dom/.libs/text.o ext/dom/.libs/comment.o ext/dom/.libs/domconfiguration.o ext/dom/.libs/domimplementationsource.o ext/dom/.libs/entityreference.o ext/dom/.libs/notation.o ext/dom/.libs/xpath.o ext/dom/.libs/dom_iterators.o ext/dom/.libs/typeinfo.o ext/dom/.libs/domerror.o ext/dom/.libs/domlocator.o ext/dom/.libs/namednodemap.o ext/dom/.libs/userdatahandler.o ext/exif/.libs/exif.o ext/filter/.libs/filter.o ext/filter/.libs/sanitizing_filters.o ext/filter/.libs/logical_filters.o ext/filter/.libs/callback_filter.o ext/ftp/.libs/php_ftp.o ext/ftp/.libs/ftp.o ext/gd/.libs/gd.o ext/gd/libgd/.libs/gd.o ext/gd/libgd/.libs/gd_gd.o ext/gd/libgd/.libs/gd_gd2.o ext/gd/libgd/.libs/gd_io.o ext/gd/libgd/.libs/gd_io_dp.o ext/gd/libgd/.libs/gd_io_file.o ext/gd/libgd/.libs/gd_ss.o ext/gd/libgd/.libs/gd_io_ss.o ext/gd/libgd/.libs/gd_png.o ext/gd/libgd/.libs/gd_jpeg.o ext/gd/libgd/.libs/gdxpm.o ext/gd/libgd/.libs/gdfontt.o ext/gd/libgd/.libs/gdfonts.o ext/gd/libgd/.libs/gdfontmb.o ext/gd/libgd/.libs/gdfontl.o ext/gd/libgd/.libs/gdfontg.o ext/gd/libgd/.libs/gdtables.o ext/gd/libgd/.libs/gdft.o ext/gd/libgd/.libs/gdcache.o ext/gd/libgd/.libs/gdkanji.o ext/gd/libgd/.libs/wbmp.o ext/gd/libgd/.libs/gd_wbmp.o ext/gd/libgd/.libs/gdhelpers.o ext/gd/libgd/.libs/gd_topal.o ext/gd/libgd/.libs/gd_gif_in.o ext/gd/libgd/.libs/xbm.o ext/gd/libgd/.libs/gd_gif_out.o ext/gd/libgd/.libs/gd_security.o ext/gettext/.libs/gettext.o ext/hash/.libs/hash.o ext/hash/.libs/hash_md.o ext/hash/.libs/hash_sha.o ext/hash/.libs/hash_ripemd.o ext/hash/.libs/hash_haval.o ext/hash/.libs/hash_tiger.o ext/hash/.libs/hash_gost.o ext/hash/.libs/hash_snefru.o ext/hash/.libs/hash_whirlpool.o ext/hash/.libs/hash_adler32.o ext/hash/.libs/hash_crc32.o ext/iconv/.libs/iconv.o ext/json/.libs/json.o ext/json/.libs/utf8_to_utf16.o ext/json/.libs/utf8_decode.o ext/json/.libs/JSON_parser.o ext/ldap/.libs/ldap.o ext/mbstring/oniguruma/.libs/regcomp.o ext/mbstring/oniguruma/.libs/regerror.o ext/mbstring/oniguruma/.libs/regexec.o ext/mbstring/oniguruma/.libs/reggnu.o ext/mbstring/oniguruma/.libs/regparse.o ext/mbstring/oniguruma/.libs/regenc.o ext/mbstring/oniguruma/.libs/regext.o ext/mbstring/oniguruma/.libs/regsyntax.o ext/mbstring/oniguruma/.libs/regtrav.o ext/mbstring/oniguruma/.libs/regversion.o ext/mbstring/oniguruma/.libs/st.o ext/mbstring/oniguruma/enc/.libs/unicode.o ext/mbstring/oniguruma/enc/.libs/ascii.o ext/mbstring/oniguruma/enc/.libs/utf8.o ext/mbstring/oniguruma/enc/.libs/euc_jp.o ext/mbstring/oniguruma/enc/.libs/euc_tw.o ext/mbstring/oniguruma/enc/.libs/euc_kr.o ext/mbstring/oniguruma/enc/.libs/sjis.o ext/mbstring/oniguruma/enc/.libs/iso8859_1.o ext/mbstring/oniguruma/enc/.libs/iso8859_2.o ext/mbstring/oniguruma/enc/.libs/iso8859_3.o ext/mbstring/oniguruma/enc/.libs/iso8859_4.o ext/mbstring/oniguruma/enc/.libs/iso8859_5.o ext/mbstring/oniguruma/enc/.libs/iso8859_6.o ext/mbstring/oniguruma/enc/.libs/iso8859_7.o ext/mbstring/oniguruma/enc/.libs/iso8859_8.o ext/mbstring/oniguruma/enc/.libs/iso8859_9.o ext/mbstring/oniguruma/enc/.libs/iso8859_10.o ext/mbstring/oniguruma/enc/.libs/iso8859_11.o ext/mbstring/oniguruma/enc/.libs/iso8859_13.o ext/mbstring/oniguruma/enc/.libs/iso8859_14.o ext/mbstring/oniguruma/enc/.libs/iso8859_15.o ext/mbstring/oniguruma/enc/.libs/iso8859_16.o ext/mbstring/oniguruma/enc/.libs/koi8.o ext/mbstring/oniguruma/enc/.libs/koi8_r.o ext/mbstring/oniguruma/enc/.libs/big5.o ext/mbstring/oniguruma/enc/.libs/utf16_be.o ext/mbstring/oniguruma/enc/.libs/utf16_le.o ext/mbstring/oniguruma/enc/.libs/utf32_be.o ext/mbstring/oniguruma/enc/.libs/utf32_le.o ext/mbstring/libmbfl/filters/.libs/html_entities.o ext/mbstring/libmbfl/filters/.libs/mbfilter_7bit.o ext/mbstring/libmbfl/filters/.libs/mbfilter_ascii.o ext/mbstring/libmbfl/filters/.libs/mbfilter_base64.o ext/mbstring/libmbfl/filters/.libs/mbfilter_big5.o ext/mbstring/libmbfl/filters/.libs/mbfilter_byte2.o ext/mbstring/libmbfl/filters/.libs/mbfilter_byte4.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp1251.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp1252.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp1254.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp866.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp932.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp936.o ext/mbstring/libmbfl/filters/.libs/mbfilter_euc_cn.o ext/mbstring/libmbfl/filters/.libs/mbfilter_euc_jp.o ext/mbstring/libmbfl/filters/.libs/mbfilter_euc_jp_win.o ext/mbstring/libmbfl/filters/.libs/mbfilter_cp51932.o ext/mbstring/libmbfl/filters/.libs/mbfilter_euc_kr.o ext/mbstring/libmbfl/filters/.libs/mbfilter_euc_tw.o ext/mbstring/libmbfl/filters/.libs/mbfilter_htmlent.o ext/mbstring/libmbfl/filters/.libs/mbfilter_hz.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso2022_kr.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_1.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_10.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_13.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_14.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_15.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_16.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_2.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_3.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_4.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_5.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_6.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_7.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_8.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso8859_9.o ext/mbstring/libmbfl/filters/.libs/mbfilter_jis.o ext/mbstring/libmbfl/filters/.libs/mbfilter_iso2022_jp_ms.o ext/mbstring/libmbfl/filters/.libs/mbfilter_koi8r.o ext/mbstring/libmbfl/filters/.libs/mbfilter_armscii8.o ext/mbstring/libmbfl/filters/.libs/mbfilter_qprint.o ext/mbstring/libmbfl/filters/.libs/mbfilter_sjis.o ext/mbstring/libmbfl/filters/.libs/mbfilter_ucs2.o ext/mbstring/libmbfl/filters/.libs/mbfilter_ucs4.o ext/mbstring/libmbfl/filters/.libs/mbfilter_uhc.o ext/mbstring/libmbfl/filters/.libs/mbfilter_utf16.o ext/mbstring/libmbfl/filters/.libs/mbfilter_utf32.o ext/mbstring/libmbfl/filters/.libs/mbfilter_utf7.o ext/mbstring/libmbfl/filters/.libs/mbfilter_utf7imap.o ext/mbstring/libmbfl/filters/.libs/mbfilter_utf8.o ext/mbstring/libmbfl/filters/.libs/mbfilter_uuencode.o ext/mbstring/libmbfl/filters/.libs/mbfilter_koi8u.o ext/mbstring/libmbfl/mbfl/.libs/mbfilter.o ext/mbstring/libmbfl/mbfl/.libs/mbfilter_8bit.o ext/mbstring/libmbfl/mbfl/.libs/mbfilter_pass.o ext/mbstring/libmbfl/mbfl/.libs/mbfilter_wchar.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_convert.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_encoding.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_filter_output.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_ident.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_language.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_memory_device.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_string.o ext/mbstring/libmbfl/mbfl/.libs/mbfl_allocators.o ext/mbstring/libmbfl/nls/.libs/nls_de.o ext/mbstring/libmbfl/nls/.libs/nls_en.o ext/mbstring/libmbfl/nls/.libs/nls_ja.o ext/mbstring/libmbfl/nls/.libs/nls_kr.o ext/mbstring/libmbfl/nls/.libs/nls_neutral.o ext/mbstring/libmbfl/nls/.libs/nls_ru.o ext/mbstring/libmbfl/nls/.libs/nls_uni.o ext/mbstring/libmbfl/nls/.libs/nls_zh.o ext/mbstring/libmbfl/nls/.libs/nls_hy.o ext/mbstring/libmbfl/nls/.libs/nls_tr.o ext/mbstring/libmbfl/nls/.libs/nls_ua.o ext/mbstring/.libs/mbstring.o ext/mbstring/.libs/php_unicode.o ext/mbstring/.libs/mb_gpc.o ext/mbstring/.libs/php_mbregex.o ext/mime_magic/.libs/mime_magic.o ext/mysql/.libs/php_mysql.o ext/mysqli/.libs/mysqli.o ext/mysqli/.libs/mysqli_api.o ext/mysqli/.libs/mysqli_prop.o ext/mysqli/.libs/mysqli_nonapi.o ext/mysqli/.libs/mysqli_fe.o ext/mysqli/.libs/mysqli_report.o ext/mysqli/.libs/mysqli_driver.o ext/mysqli/.libs/mysqli_warning.o ext/mysqli/.libs/mysqli_exception.o ext/pdo/.libs/pdo.o ext/pdo/.libs/pdo_dbh.o ext/pdo/.libs/pdo_stmt.o ext/pdo/.libs/pdo_sql_parser.o ext/pdo/.libs/pdo_sqlstate.o ext/pdo_mysql/.libs/pdo_mysql.o ext/pdo_mysql/.libs/mysql_driver.o ext/pdo_mysql/.libs/mysql_statement.o ext/pdo_sqlite/.libs/pdo_sqlite.o ext/pdo_sqlite/.libs/sqlite_driver.o ext/pdo_sqlite/.libs/sqlite_statement.o ext/phar/.libs/util.o ext/phar/.libs/tar.o ext/phar/.libs/zip.o ext/phar/.libs/stream.o ext/phar/.libs/func_interceptors.o ext/phar/.libs/dirstream.o ext/phar/.libs/phar.o ext/phar/.libs/phar_object.o ext/phar/.libs/phar_path_check.o ext/posix/.libs/posix.o ext/reflection/.libs/php_reflection.o ext/session/.libs/session.o ext/session/.libs/mod_files.o ext/session/.libs/mod_mm.o ext/session/.libs/mod_user.o ext/shmop/.libs/shmop.o ext/simplexml/.libs/simplexml.o ext/soap/.libs/soap.o ext/soap/.libs/php_encoding.o ext/soap/.libs/php_http.o ext/soap/.libs/php_packet_soap.o ext/soap/.libs/php_schema.o ext/soap/.libs/php_sdl.o ext/soap/.libs/php_xml.o ext/sockets/.libs/sockets.o ext/spl/.libs/php_spl.o ext/spl/.libs/spl_functions.o ext/spl/.libs/spl_engine.o ext/spl/.libs/spl_iterators.o ext/spl/.libs/spl_array.o ext/spl/.libs/spl_directory.o ext/spl/.libs/spl_sxe.o ext/spl/.libs/spl_exceptions.o ext/spl/.libs/spl_observer.o ext/spl/.libs/spl_dllist.o ext/spl/.libs/spl_heap.o ext/spl/.libs/spl_fixedarray.o ext/sqlite/.libs/sqlite.o ext/sqlite/.libs/sess_sqlite.o ext/sqlite/.libs/pdo_sqlite2.o ext/sqlite/libsqlite/src/.libs/opcodes.o ext/sqlite/libsqlite/src/.libs/parse.o ext/sqlite/libsqlite/src/.libs/encode.o ext/sqlite/libsqlite/src/.libs/auth.o ext/sqlite/libsqlite/src/.libs/btree.o ext/sqlite/libsqlite/src/.libs/build.o ext/sqlite/libsqlite/src/.libs/delete.o ext/sqlite/libsqlite/src/.libs/expr.o ext/sqlite/libsqlite/src/.libs/func.o ext/sqlite/libsqlite/src/.libs/hash.o ext/sqlite/libsqlite/src/.libs/insert.o ext/sqlite/libsqlite/src/.libs/main.o ext/sqlite/libsqlite/src/.libs/os.o ext/sqlite/libsqlite/src/.libs/pager.o ext/sqlite/libsqlite/src/.libs/printf.o ext/sqlite/libsqlite/src/.libs/random.o ext/sqlite/libsqlite/src/.libs/select.o ext/sqlite/libsqlite/src/.libs/table.o ext/sqlite/libsqlite/src/.libs/tokenize.o ext/sqlite/libsqlite/src/.libs/update.o ext/sqlite/libsqlite/src/.libs/util.o ext/sqlite/libsqlite/src/.libs/vdbe.o ext/sqlite/libsqlite/src/.libs/attach.o ext/sqlite/libsqlite/src/.libs/btree_rb.o ext/sqlite/libsqlite/src/.libs/pragma.o ext/sqlite/libsqlite/src/.libs/vacuum.o ext/sqlite/libsqlite/src/.libs/copy.o ext/sqlite/libsqlite/src/.libs/vdbeaux.o ext/sqlite/libsqlite/src/.libs/date.o ext/sqlite/libsqlite/src/.libs/where.o ext/sqlite/libsqlite/src/.libs/trigger.o ext/sqlite3/.libs/sqlite3.o ext/sqlite3/libsqlite/.libs/sqlite3.o ext/standard/.libs/crypt_freesec.o ext/standard/.libs/crypt_blowfish.o ext/standard/.libs/php_crypt_r.o ext/standard/.libs/array.o ext/standard/.libs/base64.o ext/standard/.libs/basic_functions.o ext/standard/.libs/browscap.o ext/standard/.libs/crc32.o ext/standard/.libs/crypt.o ext/standard/.libs/cyr_convert.o ext/standard/.libs/datetime.o ext/standard/.libs/dir.o ext/standard/.libs/dl.o ext/standard/.libs/dns.o ext/standard/.libs/exec.o ext/standard/.libs/file.o ext/standard/.libs/filestat.o ext/standard/.libs/flock_compat.o ext/standard/.libs/formatted_print.o ext/standard/.libs/fsock.o ext/standard/.libs/head.o ext/standard/.libs/html.o ext/standard/.libs/image.o ext/standard/.libs/info.o ext/standard/.libs/iptc.o ext/standard/.libs/lcg.o ext/standard/.libs/link.o ext/standard/.libs/mail.o ext/standard/.libs/math.o ext/standard/.libs/md5.o ext/standard/.libs/metaphone.o ext/standard/.libs/microtime.o ext/standard/.libs/pack.o ext/standard/.libs/pageinfo.o ext/standard/.libs/quot_print.o ext/standard/.libs/rand.o ext/standard/.libs/soundex.o ext/standard/.libs/string.o ext/standard/.libs/scanf.o ext/standard/.libs/syslog.o ext/standard/.libs/type.o ext/standard/.libs/uniqid.o ext/standard/.libs/url.o ext/standard/.libs/url_scanner.o ext/standard/.libs/var.o ext/standard/.libs/versioning.o ext/standard/.libs/assert.o ext/standard/.libs/strnatcmp.o ext/standard/.libs/levenshtein.o ext/standard/.libs/incomplete_class.o ext/standard/.libs/url_scanner_ex.o ext/standard/.libs/ftp_fopen_wrapper.o ext/standard/.libs/http_fopen_wrapper.o ext/standard/.libs/php_fopen_wrapper.o ext/standard/.libs/credits.o ext/standard/.libs/css.o ext/standard/.libs/var_unserializer.o ext/standard/.libs/ftok.o ext/standard/.libs/sha1.o ext/standard/.libs/user_filters.o ext/standard/.libs/uuencode.o ext/standard/.libs/filters.o ext/standard/.libs/proc_open.o ext/standard/.libs/streamsfuncs.o ext/standard/.libs/http.o ext/sysvmsg/.libs/sysvmsg.o ext/sysvsem/.libs/sysvsem.o ext/sysvshm/.libs/sysvshm.o ext/tokenizer/.libs/tokenizer.o ext/tokenizer/.libs/tokenizer_data.o ext/wddx/.libs/wddx.o ext/xml/.libs/xml.o ext/xml/.libs/compat.o ext/xmlreader/.libs/php_xmlreader.o ext/xmlrpc/.libs/xmlrpc-epi-php.o ext/xmlrpc/libxmlrpc/.libs/base64.o ext/xmlrpc/libxmlrpc/.libs/simplestring.o ext/xmlrpc/libxmlrpc/.libs/xml_to_dandarpc.o ext/xmlrpc/libxmlrpc/.libs/xmlrpc_introspection.o ext/xmlrpc/libxmlrpc/.libs/encodings.o ext/xmlrpc/libxmlrpc/.libs/system_methods.o ext/xmlrpc/libxmlrpc/.libs/xml_to_xmlrpc.o ext/xmlrpc/libxmlrpc/.libs/queue.o ext/xmlrpc/libxmlrpc/.libs/xml_element.o ext/xmlrpc/libxmlrpc/.libs/xmlrpc.o ext/xmlrpc/libxmlrpc/.libs/xml_to_soap.o ext/xmlwriter/.libs/php_xmlwriter.o ext/xsl/.libs/php_xsl.o ext/xsl/.libs/xsltprocessor.o ext/zip/.libs/php_zip.o ext/zip/.libs/zip_stream.o ext/zip/lib/.libs/zip_add.o ext/zip/lib/.libs/zip_error.o ext/zip/lib/.libs/zip_fclose.o ext/zip/lib/.libs/zip_fread.o ext/zip/lib/.libs/zip_open.o ext/zip/lib/.libs/zip_source_filep.o ext/zip/lib/.libs/zip_strerror.o ext/zip/lib/.libs/zip_close.o ext/zip/lib/.libs/zip_error_get.o ext/zip/lib/.libs/zip_file_error_get.o ext/zip/lib/.libs/zip_free.o ext/zip/lib/.libs/zip_rename.o ext/zip/lib/.libs/zip_source_free.o ext/zip/lib/.libs/zip_unchange_all.o ext/zip/lib/.libs/zip_delete.o ext/zip/lib/.libs/zip_error_get_sys_type.o ext/zip/lib/.libs/zip_file_get_offset.o ext/zip/lib/.libs/zip_get_name.o ext/zip/lib/.libs/zip_replace.o ext/zip/lib/.libs/zip_source_function.o ext/zip/lib/.libs/zip_unchange.o ext/zip/lib/.libs/zip_dirent.o ext/zip/lib/.libs/zip_error_strerror.o ext/zip/lib/.libs/zip_file_strerror.o ext/zip/lib/.libs/zip_get_num_files.o ext/zip/lib/.libs/zip_set_name.o ext/zip/lib/.libs/zip_source_zip.o ext/zip/lib/.libs/zip_unchange_data.o ext/zip/lib/.libs/zip_entry_free.o ext/zip/lib/.libs/zip_error_to_str.o ext/zip/lib/.libs/zip_fopen.o ext/zip/lib/.libs/zip_name_locate.o ext/zip/lib/.libs/zip_source_buffer.o ext/zip/lib/.libs/zip_stat.o ext/zip/lib/.libs/zip_entry_new.o ext/zip/lib/.libs/zip_err_str.o ext/zip/lib/.libs/zip_fopen_index.o ext/zip/lib/.libs/zip_new.o ext/zip/lib/.libs/zip_source_file.o ext/zip/lib/.libs/zip_stat_index.o ext/zip/lib/.libs/zip_get_archive_comment.o ext/zip/lib/.libs/zip_get_file_comment.o ext/zip/lib/.libs/zip_set_archive_comment.o ext/zip/lib/.libs/zip_set_file_comment.o ext/zip/lib/.libs/zip_unchange_archive.o ext/zip/lib/.libs/zip_memdup.o ext/zip/lib/.libs/zip_stat_init.o ext/zip/lib/.libs/zip_add_dir.o ext/zip/lib/.libs/zip_error_clear.o ext/zip/lib/.libs/zip_file_error_clear.o ext/mysqlnd/.libs/mysqlnd.o ext/mysqlnd/.libs/mysqlnd_charset.o ext/mysqlnd/.libs/mysqlnd_wireprotocol.o ext/mysqlnd/.libs/mysqlnd_ps.o ext/mysqlnd/.libs/mysqlnd_loaddata.o ext/mysqlnd/.libs/mysqlnd_palloc.o ext/mysqlnd/.libs/mysqlnd_ps_codec.o ext/mysqlnd/.libs/mysqlnd_statistics.o ext/mysqlnd/.libs/mysqlnd_qcache.o ext/mysqlnd/.libs/mysqlnd_result.o ext/mysqlnd/.libs/mysqlnd_result_meta.o ext/mysqlnd/.libs/mysqlnd_debug.o ext/mysqlnd/.libs/mysqlnd_block_alloc.o ext/mysqlnd/.libs/php_mysqlnd.o TSRM/.libs/TSRM.o TSRM/.libs/tsrm_strtok_r.o TSRM/.libs/tsrm_virtual_cwd.o main/.libs/main.o main/.libs/snprintf.o main/.libs/spprintf.o main/.libs/php_sprintf.o main/.libs/safe_mode.o main/.libs/fopen_wrappers.o main/.libs/alloca.o main/.libs/php_scandir.o main/.libs/php_ini.o main/.libs/SAPI.o main/.libs/rfc1867.o main/.libs/php_content_types.o main/.libs/strlcpy.o main/.libs/strlcat.o main/.libs/mergesort.o main/.libs/reentrancy.o main/.libs/php_variables.o main/.libs/php_ticks.o main/.libs/network.o main/.libs/php_open_temporary_file.o main/.libs/php_logos.o main/.libs/output.o main/.libs/getopt.o main/streams/.libs/streams.o main/streams/.libs/cast.o main/streams/.libs/memory.o main/streams/.libs/filter.o main/streams/.libs/plain_wrapper.o main/streams/.libs/userspace.o main/streams/.libs/transports.o main/streams/.libs/xp_socket.o main/streams/.libs/mmap.o main/streams/.libs/glob_wrapper.o Zend/.libs/zend_language_parser.o Zend/.libs/zend_language_scanner.o Zend/.libs/zend_ini_parser.o Zend/.libs/zend_ini_scanner.o Zend/.libs/zend_alloc.o Zend/.libs/zend_compile.o Zend/.libs/zend_constants.o Zend/.libs/zend_dynamic_array.o Zend/.libs/zend_execute_API.o Zend/.libs/zend_highlight.o Zend/.libs/zend_llist.o Zend/.libs/zend_opcode.o Zend/.libs/zend_operators.o Zend/.libs/zend_ptr_stack.o Zend/.libs/zend_stack.o Zend/.libs/zend_variables.o Zend/.libs/zend.o Zend/.libs/zend_API.o Zend/.libs/zend_extensions.o Zend/.libs/zend_hash.o Zend/.libs/zend_list.o Zend/.libs/zend_indent.o Zend/.libs/zend_builtin_functions.o Zend/.libs/zend_sprintf.o Zend/.libs/zend_ini.o Zend/.libs/zend_qsort.o Zend/.libs/zend_multibyte.o Zend/.libs/zend_ts_hash.o Zend/.libs/zend_stream.o Zend/.libs/zend_iterators.o Zend/.libs/zend_interfaces.o Zend/.libs/zend_exceptions.o Zend/.libs/zend_strtod.o Zend/.libs/zend_gc.o Zend/.libs/zend_closures.o Zend/.libs/zend_objects.o Zend/.libs/zend_object_handlers.o Zend/.libs/zend_objects_API.o Zend/.libs/zend_default_classes.o Zend/.libs/zend_execute.o ext/pcntl/.libs/pcntl.o ext/pcntl/.libs/php_signal.o sapi/cli/.libs/php_cli.o sapi/cli/.libs/php_cli_readline.o main/.libs/internal_functions_cli.o -o sapi/cli/php  -L/usr/local/lib -L/opt/freeware/lib -L/usr/X11R6/lib -lz -lexslt -lz -liconv -lm -lrt -lldap -lssl -lcrypto -ls -llber -lintl -L/users3/olivap/sb/p64/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/sh_dev_GNOME/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/latest/export/power_510_32/usr/lib -L/users/project/PDP/PDP_51_050/usr/ccs/lib -L/users/project/PDP/PDP_51_050/usr/lib -liconv -lfreetype -L/gestconf/project/GNOME_ACL/GNOME/build/BLD_M_gnome2_12f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/M_acc_gnome2_12_0f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_12_0f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_12_0/export/power_510_32/usr/lib -lz -lX11 -lXpm -lpng -L/gestconf/project/GNOME_ACL/GNOME/build/BLD_M_gnome2_14f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/M_acc_gnome2_14_0f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_14_0f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_14_0/export/power_510_32/usr/lib -L/users/project/PDP/PDP_51_vac_6_14/usr/ccs/lib -L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl -lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz -liconv -lm -lz -liconv -lm -Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib 
ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 72600     Maximum size: 65536
        Extra instructions are being generated for each reference to a TOC
        symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal stub for phar "/home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.phar"' in /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php:1010
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php(1010): Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php(1070): PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...', '/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php(226): call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php(2090): CLICommand->__construct(19, Array)
#5 {main}
  thrown in /home/bwiberg/rpm/BUILD/php-5.3.0alpha1/ext/phar/phar.php on line 1010
make: *** [ext/phar/phar.phar] Error 255

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-06 08:03 UTC] Bjorn dot Wiberg at its dot uu dot se
Sorry, same error with 5.3-dev (5.3-200808060630):

---8<--- excerpt ---8<---
t/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/acc_gnome2_14_0f1/export/power_510_32/usr/lib -L/gestconf/project/GNOME_ACL/GNOME/build/GNOME_2_14_0/export/power_510_32/usr/lib -L/users/project/PDP/PDP_51_vac_6_14/usr/ccs/lib -L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl -lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz -liconv -lm -lz -liconv -lm -Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib 
ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 72664     Maximum size: 65536
        Extra instructions are being generated for each reference to a TOC
        symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal stub for phar "/home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.phar"' in /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(994): Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(1054): PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...', '/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(225): call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php(2073): CLICommand->__construct(19, Array)
#5 {main}
  thrown in /home/bwiberg/rpm/BUILD/php5.3-200808060630/ext/phar/phar.php on line 994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.10312 (%build)

bwiberg@melody-lp04:~/rpm/SPECS$ cd ..
bwiberg@melody-lp04:~/rpm$ cd BUILD/php5.3-200808060630/
bwiberg@melody-lp04:~/rpm/BUILD/php5.3-200808060630$ /opt/freeware/bin/find -iname Archive.php
bwiberg@melody-lp04:~/rpm/BUILD/php5.3-200808060630$ 
--->8--- end excerpt --->8---

(No Archive.php anywhere...)
 [2008-08-13 19:25 UTC] jani@php.net
Assigned to the PHAR maintainer.
 [2008-08-22 22:12 UTC] technopark02 at gmail dot com
This issue is easy to reproduce with php5.3-200808220630 on Solaris 10 x86/x64 as well.
 [2008-08-29 12:26 UTC] rainer dot tammer at schulergroup dot com
Hello,
the same problem exists on AIX 5.2 / 5.3.
Bye
  Rainer
 [2008-09-14 07:29 UTC] helly@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Cannot reproduce, Iirc this did happen in earlier versions though.

Try running buildconf.

./buildconf --force && ./configure --disable-all --enable-phar && make
[...]
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.
clicommand.inc
directorygraphiterator.inc
directorytreeiterator.inc
invertedregexiterator.inc
pharcommand.inc
phar.inc

Build complete.
Don't forget to run 'make test'.

 [2008-09-14 13:48 UTC] felipe@php.net
Hi,
I can reproduce on BSD.

The php executable path (/usr/home/felipe/php5)  is being passed to phar_set_stub_begin() in the $loader parameter, hence the binary is included in string passed to $phar->setStub();
 [2008-09-14 15:13 UTC] felipe@php.net
s/php executable path/php directory/

The file_get_contents() is reading the dir. as a real file.

sapi/cli/php -r 'var_dump(file_get_contents("/home/felipe/php5"));'

string(2560) "&#65533;&#65533;l
                 .&#65533;k
                    ..-&#65533;l
buildmk.stamp&#65533;&#65533;.&#65533;l       CVS&#65533;&#65533;l&#9618;
.cvsignoreB&#65533;.gdbinitw&#65533;U&#65533;&#65533;CODING_STANDARDS&#65533;j&#65533;&#65533;CREDITS&#65533;&#65533;l

 [2008-09-16 12:03 UTC] Bjorn dot Wiberg at its dot uu dot se
It doesn't like my autoconf, so running buildconf is unfortunately a no-go for me...

Awaiting responses to felipe's comments instead -- they sound very interesting!

Best regards,
Björn


---8<---
+ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
           Running cvsclean for you.
           To avoid this, install autoconf-2.13.
"build/build2.mk", line 32: make: Dependency line needs colon or double colon operator.
"build/build2.mk", line 33: make: Dependency line needs colon or double colon operator.
"build/build2.mk", line 35: make: Dependency line needs colon or double colon operator.
make: Fatal errors encountered -- cannot continue.
make: The error code from the last command is 2.
--->8---
 [2008-09-16 12:21 UTC] Bjorn dot Wiberg at its dot uu dot se
Noticed that buildconf checks the MAKE environment variable, so made sure that it uses GNU make by setting MAKE on the command line. Then the buildconf call works.

But the PHAR error persists. (And, --disable-all --enable-phar is not very useful, right?)

So, again, awaiting any response to felipe's comments.

---8<---
L/users/project/PDP/PDP_51_vac_6_14/usr/lib -lz -lm -lz -ljpeg -lssl -lcrypto -lgdbm -lbz2 -lz -lssl -lcrypto -lm -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lssl -lcrypto -lz -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lz -liconv -lm -lxslt -lz -liconv -lm -lxml2 -lpthread -lz -liconv -lm -lz -liconv -lm -Wl,-blibpath:/usr/local/lib:/opt/freeware/lib:/usr/X11R6/lib:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/../../..:/usr/lib:/lib 
ld: 0711-224 WARNING: Duplicate symbol: php_optidx
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-783 WARNING: TOC overflow. TOC size: 73936     Maximum size: 65536
        Extra instructions are being generated for each reference to a TOC
        symbol if the symbol is in the TOC overflow area.
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal stub for phar "/home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.phar"' in /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php:994
Stack trace:
#0 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(994): Phar->setStub('#!/apache/php/b...')
#1 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(1054): PharCommand->phar_set_stub_begin(Object(Phar), '/home/bwiberg/r...', '/home/bwiberg/r...', '/apache/php/bin...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(225): call_user_func(Array, Array)
#4 /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php(2073): CLICommand->__construct(19, Array)
#5 {main}
  thrown in /home/bwiberg/rpm/BUILD/php5.3-200809161030/ext/phar/phar.php on line 994
make: *** [ext/phar/phar.phar] Error 255
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.12271 (%build)
bwiberg@melody-lp04:~/rpm/SPECS$
--->8---
 [2008-10-02 23:19 UTC] felipe@php.net
Well, I think that we should add a check for directory, as it's 
possible to some OSs `cat /dir/`.


Index: ext/phar/phar/pharcommand.inc
===================================================================
RCS file: /repository/php-src/ext/phar/phar/pharcommand.inc,v
retrieving revision 1.49.2.12
diff -u -r1.49.2.12 pharcommand.inc
--- ext/phar/phar/pharcommand.inc       12 Sep 2008 16:09:01 -0000      
1.49.2.12
+++ ext/phar/phar/pharcommand.inc       2 Oct 2008 23:10:22 -0000
@@ -488,7 +488,9 @@

                        if (isset($loader)) {
                                $s = "<?php if 
(!class_exists('PHP_Archive')) {\n?>";
-                               $s .= file_get_contents($loader);
+                               if (!is_dir($loader)) {
+                                       $s .= 
file_get_contents($loader);
+                               }
                                $s .= "<?php\n";
                                $s .= "}\n";
                                $s .= "if (!in_array('phar', 
stream_get_wrappers())) {\n";

 [2008-10-17 01:59 UTC] felipe@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 14:01:23 2020 UTC