-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find license with LibXL 3.8.0.0 #208
Comments
Is not this caused by the fact that you do not have an .ini-file with a |
Those are in a license.ini that is loaded in PHP. I can call them such as: $useXlsxFormat = true; If I echo those values, it will show the proper values, but PHP Excel does not accept them. |
Yes, but license.ini is not loaded when running tests/000.phpt |
When running the test with d3a245c and libxl-3.6.5.0, the tests/000.phpt pass and the Demo message is not displayed in the xlsx file. The test fails when I use the updated php7 branch and libxl-3.8.0.0. When I make install and then run the sample script in the readme file, the demo message is displayed as well. It seems that after LibXL 3.6.5.0 and d3a245c there are issues with loading the license file, which is what I running into. Do we need to pass an include on the license file when configuring PHP Excel? If so, what should that be? |
How old is your license? Could it be that it is too old? With my old license, libxl-3.6.5.9 is the latest version that does not show the 'Please renew your license' in the test. Except the ExcelBook('bar', 'baz') test, of course. |
We initially got this license in early 2015. |
That might be the problem. Mine is from the time that LibXL had release 3.6.2: 2015-04-28 |
3.6.5.41 (Win) still works with my old license. 3.7.0.2 fails. Where did I get those: |
I've been able to get this compiled on another server running with the same commands in the OP, so this may be specific to the server/VM. Is there any case sensitivity paths with checking for licenses? |
Adding the output: https://gist.github.com/bf0x0r/f65cd85f3d60a3a26db4a8ead6bf674d |
Did 'make test' run flawlessly? After updating my license, this:
resulted in
on CentOS 6 |
|
Before updating my license I got roundabout the same test results. |
With php 7.1.7 on CentOS6 and an updated license the tests result in:
|
One new finding is that it appears to be specific to VMs deployed with VirtualBox. VMs deployed with VMWare the issue does not exist. We use both and need this to work on both. Any ideas? |
I'm able to reproduce this with PHP 7.1.7 and CentOS 7 on latest VirtualBox. The license test fails:
Then a bug that I may have found a problem with PHP:
Oddly this doesn't have an issue with a VMWare-based VM. |
Is this with a recent license? After renewing my license, this issue was solved on a physical machine with centOS6 and PHP 7.1 for me. |
Do not trust so much in the isLicensed() test. It relies on a string served by libxl that is dependend from the OS. If you do not have a proper license there should actually fail a lot more tests. ... also from my understanding libxml dependencies should have been removed in the php7 branch. |
Thanks for the feedback. I've contacted libxl support to confirm our license. |
Ours was fixed with a new license file. |
Getting a new license file addressed the issue. |
Running into issues with PHP Excel finding the LibXL license in PHP 7. Versions running are Oracle RHEL 7.3, PHP 7.1.7, LibXL 3.8.0.0 and the php7 branch of PHP Excel.
I am using the example in the README and getting the the trial message, even with a valid license. Below are the steps used to compile and the test results. I saw Issue #163 had troubles with the license as well. Pulled down the repo as of d3a245c and still had issues.
It appears I am able to peg the repo version to d3a245c and get it to work with LibXL 3.6.5.0, but we need to update to LibXL 3.8.0.0. Any thoughts?
cd /usr/local/
wget http://www.libxl.com/download/libxl-lin-3.8.0.tar.gz
tar xzfv libxl-lin-3.8.0.tar.gz
rm -rf libxl-lin-3.8.0.tar.gz
git clone -b php7 https://github.com/iliaal/php_excel.git php_excel
cd php_excel
phpize
./configure --with-excel=shared --with-libxl-incdir=/usr/local/libxl-3.8.0.0/include_c --with-libxl-libdir=/usr/local/libxl-3.8.0.0/lib64
make
make test
=====================================================================
PHP : /usr/bin/php
PHP_SAPI : cli
PHP_VERSION : 7.1.7
ZEND_VERSION: 3.1.0
PHP_OS : Linux - Linux example.com 4.1.12-94.3.6.el7uek.x86_64 #2 SMP Tue May 30 19:25:15 PDT 2017 x86_64
INI actual : /usr/local/php_excel/tmp-php.ini
More .INIs :
PHP : /usr/bin/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 7.1.7
ZEND_VERSION: 3.1.0
PHP_OS : Linux - Linux example.com 4.1.12-94.3.6.el7uek.x86_64 #2 SMP Tue May 30 19:25:15 PDT 2017 x86_64
INI actual : /usr/local/php_excel/tmp-php.ini
More .INIs :
CWD : /usr/local/php_excel
Extra dirs :
VALGRIND : Not used
TIME START 2017-07-18 16:25:08
FAIL LibXL licensed version vs trial version test [tests/000.phpt]
The text was updated successfully, but these errors were encountered: