Closed crazyjaco closed 9 years ago
I looked in the tests to see where it was failing. Put them in a standalone script.
echo 'Extension Loaded - Imagick: '. extension_loaded('imagick') . '</br>';
echo 'Extension Loaded - GD: ' . extension_loaded('gd') . '<br/>';
Results:
Extension Loaded - Imagick: 1
Extension Loaded - GD: 1
It looks like everything is right, but the test keeps failling.
I ran the following command: phpize, ./configure --disable-zbarcode-imagick make test
My two failing tests were still there, but when I ran make install, it completed this time.
When I try to run the following, it returns true.
extension_loaded('zbarcode')
But when I try to run the following, I get nothing back:
php -i | grep zbarcode
After further testing in a php test page, I can instantiate objects and read a sample barcode.
Marking this as closed. Thanks for this extension!
Pretty sure I did something wrong, but don't really know what.
I followed the directions and put the two entries in my php.ini
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;;
extension=imagick.so extension=php_gd2.dll
Test results are as follows:
PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.5.9-1ubuntu4.11 ZEND_VERSION: 2.5.0 PHP_OS : Linux - Linux pv 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 INI actual : /home/vagrant/Download/php-zbarcode/tmp-php.ini More .INIs : CWD : /home/vagrant/Download/php-zbarcode Extra dirs :
VALGRIND : Not used
TIME START 2015-09-11 16:55:58
PASS Test construction [tests/001-construct.phpt] PASS Test reading image and scanning barcode [tests/002-read-barcode.phpt] PASS Test setting config [tests/003-setconfig.phpt] PASS Test multipage reading and single page reading [tests/004-paged-reading.phpt] PASS Test count [tests/005-count.phpt] SKIP Check whether imagick integration works [tests/006-imagick.phpt] reason: Imagick extension is not loaded
SKIP Test GD support [tests/007-test-gd.phpt] reason: GD extension is not loaded
TIME END 2015-09-11 16:55:58
TEST RESULT SUMMARY
Exts skipped : 0
Exts tested : 43
Number of tests : 7 5 Tests skipped : 2 ( 28.6%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 5 ( 71.4%) (100.0%)
Time taken : 0 seconds