Skip to content

Successful installation, Failed Execution #20

@jabcreations

Description

@jabcreations

Using PuTTY I ran the following:

git clone --recursive --depth=1 https://github.com/kjdev/php-ext-brotli.git
cd php-ext-brotli
phpize
./configure
make
make install

Tried running the code in PHP:

echo brotli_compress('<p>test 1</p>');

Fatal error: Uncaught Error: Call to undefined function brotli_compress()

So the tests all failed and I'm just posting this here:

$ make test
/bin/sh /root/php-ext-brotli/libtool --mode=install cp ./brotli.la /root/php-ext-brotli/modules
cp ./.libs/brotli.so /root/php-ext-brotli/modules/brotli.so
cp ./.libs/brotli.lai /root/php-ext-brotli/modules/brotli.la
PATH="$PATH:/sbin" ldconfig -n /root/php-ext-brotli/modules

Libraries have been installed in:
/root/php-ext-brotli/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

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

=====================================================================
PHP : /usr/local/bin/php
Warning: PHP Startup: brotli: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20160303
These options need to match
in Unknown on line 0

PHP_SAPI : cli
PHP_VERSION : 7.1.27
ZEND_VERSION: 3.1.0
PHP_OS : Linux - Linux server.jabcreations.com 2.6.32-042stab120.19 #1 SMP Mon Feb 20 20:05:53 MSK 2017 x86_64
INI actual : /root/php-ext-brotli/tmp-php.ini
More .INIs :
CWD : /root/php-ext-brotli
Extra dirs :
VALGRIND : Not used

TIME START 2019-04-01 21:23:14

SKIP Test compatibility [tests/compatibility.phpt]
SKIP Test phpinfo() displays brotli info [tests/info.phpt]
SKIP brotli.output_compression [tests/ob_001.phpt] reason: CGI not available
FAIL brotli.output_compression [tests/ob_002.phpt]
SKIP brotli.output_compression [tests/ob_003.phpt] reason: CGI not available
SKIP ob_brotli_handler [tests/ob_004.phpt] reason: CGI not available
SKIP ob_brotli_handler [tests/ob_005.phpt] reason: CGI not available
FAIL brotli.output_compression=1 with client not accepting compression [tests/ob_006.phpt]
SKIP brotli.output_compression Overwrites Vary Header [tests/ob_007.phpt] reason: CGI not available
SKIP ob_brotli_handler always conflicts with brotli.output_compression [tests/ob_008.phpt] reason: CGI not available
SKIP checks brotli compression output size is always the same [tests/ob_009.phpt]
FAIL brotli.output_compression ob_get_clean [tests/ob_010.phpt]
SKIP ob_brotli_handler [tests/ob_011.phpt] reason: CGI not available
SKIP Test roundtrip [tests/roundtrip.phpt]

TIME END 2019-04-01 21:23:15

=====================================================================
TEST RESULT SUMMARY

Exts skipped : 0
Exts tested : 14

Number of tests : 14 3
Tests skipped : 11 ( 78.6%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 3 ( 21.4%) (100.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 0 ( 0.0%) ( 0.0%)

Time taken : 1 seconds

=====================================================================
FAILED TEST SUMMARY

brotli.output_compression [tests/ob_002.phpt]
brotli.output_compression=1 with client not accepting compression [tests/ob_006.phpt]
brotli.output_compression ob_get_clean [tests/ob_010.phpt]

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions