Skip to content

Redis extension does not work without igbinary #255

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

Closed
ikulis opened this issue Jun 13, 2021 · 2 comments
Closed

Redis extension does not work without igbinary #255

ikulis opened this issue Jun 13, 2021 · 2 comments
Labels
stale Issues inactives for a while (automatically)

Comments

@ikulis
Copy link

ikulis commented Jun 13, 2021

As follow up from #213 , Kudos to #213 (comment)

Expected Behavior

Image should work by just adding redis extension without you need to add igbinary.

Current Behavior

Starting image fails:

$ docker-compose up web
Recreating redis-breaks_web_1 ... done
Attaching to redis-breaks_web_1
web_1  | PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
web_1  | /usr/local/bin/docker-entrypoint-as-root.sh: line 129: supercronic: command not found
web_1  | PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
web_1  | bash: line 2: syntax error near unexpected token `('
web_1  | bash: line 2: `Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20190902/redis.so (/usr/lib/php/20190902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/redis.so.so (/usr/lib/php/20190902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0'
redis-breaks_web_1 exited with code 2

Possible Solution

  • Somehow autoenable igbinary extension after redis extension is enabled.
  • add some disclaimer in Readme.md that igbinary extension is required

Steps to Reproduce (for bugs)

  1. Make Dockerfile
# Required default PHP extensions
ARG PHP_EXTENSIONS="redis"

# Image for the development
FROM thecodingmachine/php:7.4-v3-slim-apache
  1. Make docker-compose.yml
version: '3.4'

services:
  web:
    build: ./
    environment:
      TEMPLATE_PHP_INI: "development"
      PHP_INI_ERROR_REPORTING: "E_ERROR"
      PHP_EXTENSION_XDEBUG: "0"
      PHP_INI_XDEBUG__REMOTE_AUTOSTART: "0"
      TZ: "Europe/Amsterdam"
      APACHE_DOCUMENT_ROOT: "public"
    volumes:
      - "./:/var/www/html/"
  1. docker-compose build
  2. docker-compose up web
@stale
Copy link

stale bot commented Nov 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.

@stale stale bot added the stale Issues inactives for a while (automatically) label Nov 9, 2021
@stale
Copy link

stale bot commented Nov 16, 2021

This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.

@stale stale bot closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues inactives for a while (automatically)
Projects
None yet
Development

No branches or pull requests

1 participant