niel / php-yenc Goto Github PK
View Code? Open in Web Editor NEWBasic implementation of yEnc specification for in memory encoding/decoding.
Basic implementation of yEnc specification for in memory encoding/decoding.
FYI version strange issue with version showing in php -a
$extensions = get_loaded_extensions();
foreach ($extensions as $extension) {
echo "$extension: " . phpversion($extension) . "\n";
}
yenc: 1.1.1
Made sure it was the correct file, removed it from lib and did not show, put it back, and it does. For the life of me, I can not figure out where this is coming from and why it's now showing 1.2.2.
fresh ubuntu 16 installed, php7.0 installed for nzedb indexer.
sudo dpkg -i php7.0-yenc_1.3.0_amd64.deb
Selecting previously unselected package php7.0-yenc.
(Reading database ... 171689 files and directories currently installed.)
Preparing to unpack php7.0-yenc_1.3.0_amd64.deb ...
Unpacking php7.0-yenc (1.3.0) ...
dpkg: dependency problems prevent configuration of php7.0-yenc:
php7.0-yenc depends on php7.0; however:
Package php7.0 is not installed.
dpkg: error processing package php7.0-yenc (--install):
dependency problems - leaving unconfigured
Processing triggers for php7.0-cli (7.0.22-0ubuntu0.16.04.1) ...
Errors were encountered while processing:
php7.0-yenc
root@b0x:~# php -v
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
Every time PHP runs it results in a segfault. Disabling the extension results in a working PHP.
php -m, php -i, etc. result in segfault. Strace ... of course ... just states:
munmap(0x7fbcb59c9000, 65536) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xa00000001} ---
+++ killed by SIGSEGV (core dumped) +++
I wanted to get this issue submitted while I was in the middle of trying to use php-yenc. I can assist with debugging at a later date.
If I execute package.sh it gives me the following error:
./package.sh: line 8: fpm: command not found
Am I missing some package?
S.
How do I go about building this PHP extension (specifically for 7.2)? The package.sh script only seems to work if the extension has already been built.
When installing sudo dpkg -i php7.0-yenc_1.3.0_amd64.deb I get:
php7.0-yenc depends on php7.0; however: Package php7.0 is not installed.
test.php gives me:
PHP Version 7.0.15-0ubuntu0.16.04.4
Hi @niel,
dpkg -I php7.0-yenc_1.2.2_amd64.deb
new debian package, version 2.0.
size 37608 bytes: control archive=886 bytes.
73 bytes, 2 lines conffiles
284 bytes, 12 lines control
206 bytes, 3 lines md5sums
584 bytes, 18 lines * postinst #!/usr/bin/env
Package: php7.0-yenc
Version: 1.2.2
License: unknown
Vendor: niel@minty
Architecture: amd64
Maintainer: <niel@minty>
Installed-Size: 79
Depends: php (>> 7.0)
Section: default
Priority: extra
Homepage: https://github.com/niel/php-yenc
Description: php-yenc extension build for PHP 7.0
Spoke to ondrej last night. He says for this package to properly work with php-yenc it needs to depend on the package php7.0 and not on the package php with a version > 7.0.
Could you compile a .deb which depends on php7.0? :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.