title: Docker PHP5.6 Call to undefined function bindtextdomain()
body: <p><strong>Problem:</strong></p>
  
  <p>I have a Docker compose with an nginx service and a PHP service.
  When I try to open a page of my dev project, I encounter this error:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function bindtextdomain() in /usr/share/nginx/html/some_project/some_path/Bootstrap.php on line 16</p>
  </blockquote>
  
  <p>I saw that is a problem of a missing dependency: <code>php-gettext</code>.</p>
  
  <p><strong>My configuration:</strong></p>
  
  <p>In my Dockerfile, I try to install it:</p>
  
  <pre><code>FROM php:5.6.30-fpm
  MAINTAINER DarckCrystale "xxx@xxx.xx"
  
  # Here I try to install the php-gettext extension
  # but it does not work
  RUN apt-get update &amp;&amp; apt-get install -y php-gettext gettext
  
  # Setup PHP configuration
  ADD php.ini /usr/local/etc/php/conf.d/php.ini
  </code></pre>
  
  <p>In my php.ini, I load it:</p>
  
  <pre><code>extension=gettext.so
  </code></pre>
  
  <p><strong>Other information:</strong></p>
  
  <p>When I run in my container</p>
  
  <pre><code>php -i | grep extension_dir
  </code></pre>
  
  <p>I have this message displayed:</p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/gettext.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0</p>
  </blockquote>
  
  <p><strong>What it seems to be to me:</strong></p>
  
  <p>I think </p>
  
  <pre><code>RUN apt-get update &amp;&amp; apt-get install -y php-gettext gettext
  </code></pre>
  
  <p>does not install the <code>php-gettext</code> extension. I don't know why. I think this is a PHP Dockerized specific problem.</p>