summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-10-18 10:50:26 +0200
committerRemi Collet <fedora@famillecollet.com>2014-10-18 10:50:26 +0200
commit821b399edab6bf97a4efbd6ac51a0dfed7d4c945 (patch)
tree63fd2a78c8ba46cce53b0dd7e3ee3431119c0224
parent0c8a6466d63c4e2da1c8182b28b0baedaecc62ba (diff)
php-ioncube-loader: 4.7.0 (with 5.6 support)
-rw-r--r--LICENSE.txt242
-rw-r--r--Makefile2
-rw-r--r--REFLECTION69
-rw-r--r--php-ioncube-loader.spec37
4 files changed, 340 insertions, 10 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..ba62a49
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,242 @@
+LICENCE AGREEMENT FOR THE IONCUBE PHP LOADER AND USE OF IONCUBE ENCODED FILES
+
+YOU SHOULD CAREFULLY READ THE FOLLOWING TERMS AND CONDITIONS BEFORE USING THE
+LOADER SOFTWARE. THE INSTALLATION AND/OR USE OR COPYING OF THE IONCUBE PHP
+LOADER SOFTWARE INDICATES YOUR ACCEPTANCE OF THIS LICENCE AGREEMENT. IF YOU
+DO NOT ACCEPT THE TERMS OF THIS LICENCE AGREEMENT, DO NOT INSTALL, COPY
+AND/OR USE THE LOADER SOFTWARE.
+
+DEFINITIONS
+
+The following definitions shall apply in this document:
+
+LOADER shall mean the ionCube PHP Loader software package or collection
+of Loaders, including any modifications or upgrades to the software, used for
+executing PHP scripts previously encoded with the ionCube PHP Encoder
+software to render them non-humanly readable, and any associated
+documentation or electronic or online materials relating to the software.
+
+ENCODER shall mean any ionCube PHP Encoder software or service used for the
+purpose of producing non-humanly readable encoded files from PHP scripts.
+
+ENCODED FILE shall mean a non-humanly readable file produced by the
+Encoder and being derived from humanly readable PHP script source.
+
+PROVIDER shall mean ionCube Software LLP.
+
+USER/YOU shall mean any entity who has downloaded or obtained through any
+other means a version of the Loader software.
+
+
+1 LICENSE ENTITLEMENT
+
+1.1 The Loader is provided without charge. Title to the Loader does not pass
+to the user in any circumstances. The Loader is supplied as object code.
+
+1.2 The provider grants a personal, non-transferable, non-exclusive licence to
+use the Loader in accordance with the terms and conditions of this Licence
+Agreement.
+
+1.3 The installation or downloading and use of the Loader entitles the user
+to install and use the Loader for its own internal lawful purposes.
+
+
+2 DISTRIBUTION
+
+2.1 The Loader may be freely distributed to third parties alone or as
+part of a distribution containing other items provided that this license
+is also included.
+
+2.2 The Loader may under no circumstances be branded as another product,
+whether distributed or not.
+
+2.3 Distribution as part of a commercial product is permitted provided such
+distribution is in accordance with clauses 2.1 and 2.2 with respect to the
+Loader.
+
+
+3 ANALYSIS / REVERSE ENGINEERING / MODIFICATION
+
+Except insofar as the user is permitted to do so in accordance with applicable
+law:
+
+3.1 Any analysis of the Loader and embedded data by any means and by
+any entity whether human or otherwise and including but without limitation to
+discover details of internal operation, to reverse engineer, to de-compile
+object code, or to modify for the purposes of modifying behaviour is
+forbidden.
+
+3.2 Any analysis of encoded files by any means and by any entity whether human
+or otherwise and including but without limitation to discover details of file
+format or for the purposes of modifying behaviour or scope of their usage is
+forbidden.
+
+
+4 WARRANTY
+
+THE LOADER SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
+WARRANTIES INCLUDING BUT WITHOUT LIMITATION THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE ARE
+DISCLAIMED. THE PROVIDER DOES NOT WARRANT THAT THE LOADER IS UNINTERRUPTED
+OR ERROR FREE, NOR THAT THE OPERATION OF THE LOADER WILL FUNCTION IN
+CONJUNCTION WITH ANY OTHER PRODUCT.
+
+
+5 LIMITATION OF LIABILITY
+
+5.1 IN NO EVENT WILL THE PROVIDER OF THE LOADER BE LIABLE TO THE USER OR ANY
+PARTY FOR ANY DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL OR OTHER
+CONSEQUENTIAL DAMAGES ARISING DIRECTLY OR INDIRECTLY FROM THIS LICENCE
+AGREEMENT OR ANY USE OF THE LOADER OR ENCODED FILES, EVEN IF THE PROVIDER IS
+EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+5.2 THE LOADER IS PROVIDED ON AN "AS IS" BASIS. THE PROVIDER EXCLUDES ALL
+WARRANTIES, CONDITIONS, TERMS, UNDERTAKINGS AND REPRESENTATIONS (EXCLUDING
+FRAUDULENT MISREPRESENTATION) OF ANY KIND, EXPRESS OR IMPLIED, STATUTORY OR
+OTHERWISE IN CONNECTION WITH THE LOADER TO THE FULLEST EXTENT PERMITTED BY
+LAW.
+
+5.3 DOWNLOADING THE LOADER IS AT YOUR OWN RISK AND THE PROVIDER DOES NOT
+ACCEPT LIABILITY FOR ANY DIRECT OR INDIRECT LOSS OR DAMAGE HOWSOEVER CAUSED AS
+A RESULT OF ANY COMPUTER VIRUSES, BUGS, TROJAN HORSES, WORMS, SOFTWARE BOMBS
+OR OTHER SIMILAR PROGRAMS ARISING FROM YOUR USE OF THE LOADER. WHILST THE
+PROVIDER WILL DO ITS BEST TO ENSURE THAT THE LOADER IS FREE FROM SUCH
+DESTRUCTIVE PROGRAMS, IT IS YOUR RESPONSIBILITY TO TAKE REASONABLE PRECAUTIONS
+TO SCAN FOR SUCH DESTRUCTIVE PROGRAMS DOWNLOADED FROM THE INTERNET.
+
+5.4 THE PROVIDER'S MAXIMUM LIABILITY FOR ANY LOSS OR DAMAGE ARISING FROM THIS
+LICENCE AGREEMENT SHALL IN ANY EVENT BE LIMITED IN THE SOLE DISCRETION OF THE
+PROVIDER TO THE REPLACEMENT OF THE LOADER PRODUCT.
+
+5.5 DUE TO THE NATURE OF THE INTERNET, THE PROVIDER CANNOT GUARANTEE THAT ANY
+E-MAILS OR OTHER ELECTRONIC TRANSMISSIONS WILL BE SENT TO YOU OR RECEIVED BY
+THE PROVIDER OR THAT THE CONTENT OF SUCH TRANSMISSIONS WILL BE SECURE DURING
+TRANSMISSION.
+
+
+6 BUG FIXING AND PRODUCT SUPPORT
+
+6.1 The provider will use reasonable endeavours to provide support to users.
+The provider will at their discretion only provide support for the latest
+release.
+
+6.2 Support comprises of fault reporting via tickets and fault diagnosis,
+recommendations on workarounds, and where reasonably possible a timely
+resolution.
+
+6.3 The user accepts that on occasion the ability of the provider to meet
+anticipated or published support schedules may be impaired due to, but without
+limitation, Internet service provider failures or software failures that
+affect the ability to communicate for an indeterminate period.
+
+6.4 The provider reserves the right to refuse to provide support at any time.
+
+6.5 The provider wishes to maintain and offer a product of the highest
+possible quality, and accordingly may from time to time and at its discretion
+make product changes for the purpose of correcting behaviour in variance to
+the published specification or the user's reasonable expectations.
+
+6.6 The provider reserves the right to charge for support where the user does
+not have a valid support plan in place, or where the support offered exceeds
+the scope of the active support plan.
+
+
+7 PRODUCT UPGRADES
+
+7.1 The provider may from time to time release product upgrades. These will
+be provided free of charge and attempts made to provide a timely notification
+to customers of the existence of any new release.
+
+
+8 ERRORS AND OMISSIONS
+
+Whilst reasonable endeavours are made to ensure the accuracy of documentation
+concerning the details of the Loader, the user accepts the possibility of
+inaccuracies in information presented in any format, including email
+communications and online services. The provider shall under no circumstances
+be liable for any events that arise as a result of unintentional inaccuracies
+or omissions.
+
+
+9 USER INDEMNITY
+
+You agree to fully indemnify, defend and hold the provider harmless
+immediately upon demand from and against all actions, liability, claims,
+losses, damages, costs and expenses (including legal/attorney fees) incurred
+by the provider arising directly or indirectly as a result of your breach of
+this Licence Agreement.
+
+
+10 INTELLECTUAL PROPERTY RIGHTS
+
+10.1 The user acknowledges that the Loader and associated documentation and
+materials contain proprietary information of the provider and are and shall
+remain the exclusive property of the provider and/or its licensors and all
+title, copyright, trade marks, trade names, patents and other intellectual
+property rights therein of whatever nature shall remain the sole property of
+the provider and/or its licensors.
+
+10.2 No title to or rights of ownership, copyright or other intellectual
+property in the Loader is transferred to the user (other than the licence
+rights expressly granted in this Licence Agreement).
+
+
+11 TERMINATION
+
+11.1 The provider reserves the right to terminate this Licence Agreement
+immediately by notice in writing against the user if the user is in breach of
+any terms and conditions of this Licence Agreement.
+
+11.2 Termination of this Licence Agreement for any reason shall be without
+prejudice to any other rights or remedies of the provider which may have
+arisen on or before the date of termination under this Licence Agreement or in
+law.
+
+11.3 The provisions of the following clauses shall survive any termination of
+this agreement; clause 3, 5, 10 and 13.
+
+
+12 GENERAL
+
+12.1 The provider reserves the right to transfer or assign all or any of its
+rights and duties and responsibilities set out in this Licence Agreement to
+another party.
+
+12.2 Headings have been included for convenience only and will not be used in
+construing any provision of this Licence Agreement.
+
+12.3 No delay or failure by the provider to exercise any powers, rights or
+remedies under this Licence Agreement will operate as a waiver of them nor
+will any single or partial exercise of any such powers, rights or remedies
+include any other or further exercise of them.
+
+12.4 If any part of this Licence Agreement is found by a court of competent
+jurisdiction or other competent authority to be invalid, unlawful or
+unenforceable then such part shall be severed from the remainder of this
+Licence Agreement which will continue to be valid and enforceable to the
+fullest extent permitted by applicable law.
+
+12.5 This Licence Agreement including the documents or other sources referred
+to herein supersede all prior representations, understandings and agreements
+between the user and the provider relating to the Loader and sets forth the
+entire agreement and understanding between the user and the provider relating
+to the Loader.
+
+12.6 Nothing in this Licence Agreement shall be deemed to constitute a
+partnership between you and the provider nor constitute either party being an
+agent of the other party.
+
+12.7 This Agreement does not create any rights or benefits enforceable by any
+person not a party to it (within the meaning of the U.K.Contracts (Rights of
+Third Parties) Act 1999) except that a person who under clause 12.1 is a
+permitted successor or assignee of the rights or benefits of the provider may
+enforce such rights or benefits.
+
+
+13 GOVERNING LAW AND JURISDICTION
+
+This License Agreement and any issues relating thereto shall be construed and
+interpreted in accordance with the laws of England and subject to the
+exclusive jurisdiction of the English courts.
+
+Copyright (c) 2002-2013 ionCube Software LLP Last revised 3-May-2013
diff --git a/Makefile b/Makefile
index 91b0fd5..05bf722 100644
--- a/Makefile
+++ b/Makefile
@@ -2,3 +2,5 @@ SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
include ../../common/Makefile
+refl:
+ php --re "ionCube loader" > REFLECTION
diff --git a/REFLECTION b/REFLECTION
new file mode 100644
index 0000000..dad8bbb
--- /dev/null
+++ b/REFLECTION
@@ -0,0 +1,69 @@
+Extension [ <persistent> extension #180 ionCube Loader version <no_version> ] {
+
+ - INI {
+ Entry [ phpd <ALL> ]
+ Current = '1'
+ }
+ Entry [ phpd.t <ALL> ]
+ Current = '1'
+ }
+ }
+
+ - Constants [14] {
+ Constant [ integer ION_CORRUPT_FILE ] { 1 }
+ Constant [ integer ION_EXPIRED_FILE ] { 2 }
+ Constant [ integer ION_NO_PERMISSIONS ] { 3 }
+ Constant [ integer ION_CLOCK_SKEW ] { 4 }
+ Constant [ integer ION_UNTRUSTED_EXTENSION ] { 5 }
+ Constant [ integer ION_LICENSE_NOT_FOUND ] { 6 }
+ Constant [ integer ION_LICENSE_CORRUPT ] { 7 }
+ Constant [ integer ION_LICENSE_EXPIRED ] { 8 }
+ Constant [ integer ION_LICENSE_PROPERTY_INVALID ] { 9 }
+ Constant [ integer ION_LICENSE_HEADER_INVALID ] { 10 }
+ Constant [ integer ION_LICENSE_SERVER_INVALID ] { 11 }
+ Constant [ integer ION_UNAUTH_INCLUDING_FILE ] { 12 }
+ Constant [ integer ION_UNAUTH_INCLUDED_FILE ] { 13 }
+ Constant [ integer ION_UNAUTH_APPEND_PREPEND_FILE ] { 14 }
+ }
+
+ - Functions {
+ Function [ <internal:ionCube Loader> function ioncube_file_is_encoded ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_file_info ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_file_properties ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_file_not_permissioned ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_license_properties ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_licensed_servers ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_server_data ] {
+ }
+ Function [ <internal:ionCube Loader> function _dyuweyrj4 ] {
+ }
+ Function [ <internal:ionCube Loader> function _dyuweyrj4r ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_check_license_properties ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_license_matches_server ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_license_has_expired ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_read_file ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $param0 ]
+ Parameter #1 [ <required> &$param1 ]
+ }
+ }
+ Function [ <internal:ionCube Loader> function ioncube_write_file ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_loader_version ] {
+ }
+ Function [ <internal:ionCube Loader> function ioncube_loader_iversion ] {
+ }
+ }
+}
+
diff --git a/php-ioncube-loader.spec b/php-ioncube-loader.spec
index 9ce7dcb..b221bc1 100644
--- a/php-ioncube-loader.spec
+++ b/php-ioncube-loader.spec
@@ -10,10 +10,16 @@
%global extname ioncube_loader
%global debug_package %{nil}
%global with_zts 0%{?__ztsphp:1}
+%if "%{php_version}" < "5.6"
+%global ininame %{extname}.ini
+%else
+# [ionCube Loader] The Loader must appear as the first entry in the php.ini
+%global ininame 01-%{extname}.ini
+%endif
Name: %{?scl_prefix}php-ioncube-loader
Summary: Loader for ionCube Encoded Files
-Version: 4.6.2
+Version: 4.7.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: Distribuable
Group: Development/Languages
@@ -21,6 +27,7 @@ Group: Development/Languages
URL: http://www.ioncube.com
Source0: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86.tar.bz2
Source1: http://downloads2.ioncube.com/loader_downloads/%{extname}s_lin_x86-64.tar.bz2
+Source2: LICENSE.txt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: %{?scl_prefix}php-devel
@@ -32,14 +39,18 @@ Requires: %{?scl_prefix}php(api) = %{php_core_api}
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
# Other third party repo stuff
-Obsoletes: php53-ioncube-loader <= %{version}
+Obsoletes: php53-ioncube-loader <= %{version}
Obsoletes: php53u-ioncube-loader <= %{version}
-Obsoletes: php54-ioncube-loader <= %{version}
+Obsoletes: php54-ioncube-loader <= %{version}
Obsoletes: php54w-ioncube-loader <= %{version}
%if "%{php_version}" > "5.5"
Obsoletes: php55u-ioncube-loader <= %{version}
Obsoletes: php55w-ioncube-loader <= %{version}
%endif
+%if "%{php_version}" > "5.6"
+Obsoletes: php56u-ioncube-loader <= %{version}
+Obsoletes: php56w-ioncube-loader <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -52,7 +63,7 @@ Obsoletes: php55w-ioncube-loader <= %{version}
%description
Loader for ionCube Encoded Files.
-Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}.
+Package built for PHP %(%{__php} -n -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection}.
%prep
@@ -65,6 +76,9 @@ tar xvf %{SOURCE0}
%endif
# Drop in the bit of configuration
+# Sometime file is missing
+[ -f ioncube/LICENSE.txt ] || cp %{SOURCE2} ioncube
+
cat > %{extname}.nts << 'EOF'
; Enable %{extname} extension module
zend_extension = %{php_extdir}/%{extname}.so
@@ -92,11 +106,11 @@ if [ ! -f ioncube/%{extname}_lin_${ver}.so ]; then
fi
install -D -pm 755 ioncube/%{extname}_lin_${ver}.so %{buildroot}%{php_extdir}/%{extname}.so
-install -D -m 644 %{extname}.nts %{buildroot}%{php_inidir}/%{extname}.ini
+install -D -m 644 %{extname}.nts %{buildroot}%{php_inidir}/%{ininame}
%if %{with_zts}
install -D -pm 755 ioncube/%{extname}_lin_${ver}_ts.so %{buildroot}%{php_ztsextdir}/%{extname}.so
-install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinidir}/%{extname}.ini
+install -D -m 644 %{extname}.zts %{buildroot}%{php_ztsinidir}/%{ininame}
%endif
@@ -121,19 +135,22 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license ioncube/LICENSE.txt
-%doc ioncube/README.txt
+#doc ioncube/README.txt
-%config(noreplace) %{php_inidir}/%{extname}.ini
+%config(noreplace) %{php_inidir}/%{ininame}
%{php_extdir}/%{extname}.so
%if %{with_zts}
-%config(noreplace) %{php_ztsinidir}/%{extname}.ini
+%config(noreplace) %{php_ztsinidir}/%{ininame}
%{php_ztsextdir}/%{extname}.so
%endif
%changelog
-* Thu Oct 2 2014 Remi Collet <RPMS@famillecollet.com> - 4.6.2-1
+* Sat Oct 18 2014 Remi Collet <RPMS@famillecollet.com> - 4.7.0-1
+- update to 4.6.2 (Oct 17, 2014) with PHP 5.6 support
+
+* Thu Oct 16 2014 Remi Collet <RPMS@famillecollet.com> - 4.6.2-1
- update to 4.6.2 (Oct 14, 2014)
* Mon Sep 1 2014 Remi Collet <RPMS@famillecollet.com> - 4.6.1-2