Git Product home page Git Product logo

php-xz's People

Contributors

chobie avatar payden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-xz's Issues

PHP7 compatibility

Probably this module won't work with the PHP7 environment and API.

May we get this working?

Thanks!

Cant install

For some reason, I am unable to install this in my ubuntu system. I keep getting numerous errors. for instance, cd xz && phpize && ./configure && make && sudo make install gives a number of errors. This is how my installation looks: -

sudo phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
vanarpsharma@vanarpsharma:/etc/php5/xz$ sudo ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /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... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20121212
checking for PHP installed headers prefix... /usr/include/php5
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... gawk
checking for xz support... yes, shared
checking for lzma_stream_encoder in -llzma... no
configure: error: wrong xz lib version or lib not found
vanarpsharma@vanarpsharma:/etc/php5/xz$

So how to proceed?

error: PHP_FE_END undeclared here (not in a function)

$ php -v
PHP 5.3.2-1ubuntu4.18 with Suhosin-Patch (cli) (built: Sep 12 2012 19:12:47)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
$ cat /etc/issue
Ubuntu 10.04.4 LTS \n \l
$ make
/bin/bash /home/ers/LZMA/xz/libtool --mode=compile cc -I. -I/home/ers/LZMA/xz -DPHP_ATOM_INC -I/home/ers/LZMA/xz/include -I/home/ers/LZMA/xz/main -I/home/ers/LZMA/xz -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/ers/LZMA/xz/xz.c -o xz.lo
libtool: compile: cc -I. -I/home/ers/LZMA/xz -DPHP_ATOM_INC -I/home/ers/LZMA/xz/include -I/home/ers/LZMA/xz/main -I/home/ers/LZMA/xz -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/ers/LZMA/xz/xz.c -fPIC -DPIC -o .libs/xz.o
/home/ers/LZMA/xz/xz.c:70: error: PHP_FE_END undeclared here (not in a function)
make: *** [xz.lo] Error 1

if I'm comment line with PHP_FE_END compiled fine but

$ make test

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

Segmentation fault
Segmentation fault

PHP : /usr/bin/php
CWD : /home/ers/LZMA/xz
Extra dirs :

VALGRIND : Not used

TIME START 2013-11-25 07:35:26

FAIL Test xzopen() function : basic functionality [tests/xzopen_basic.phpt]
FAIL Test xzopen() function : error conditions [tests/xzopen_error.phpt]

FAIL Test function xzwrite() by calling it with its expected arguments [tests/xzwrite_basic.phpt]

TIME END 2013-11-25 07:35:26

TEST RESULT SUMMARY

Exts skipped : 0

Exts tested : 1

Number of tests : 3 3
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 3 (100.0%) (100.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)

Tests passed : 0 ( 0.0%) ( 0.0%)

Time taken : 0 seconds

FAILED TEST SUMMARY

Test xzopen() function : basic functionality [tests/xzopen_basic.phpt]
Test xzopen() function : error conditions [tests/xzopen_error.phpt]

Test function xzwrite() by calling it with its expected arguments [tests/xzwrite_basic.phpt]

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.
Do you want to send this report now? [Yns]:

Add uri scheme fopen wrapper.

Something like compress.lzma://

<?php
$fh = fopen('compress.lzma://http://obfuskate.com/test.xz', 'r');
fpassthru($fh);
?>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.