Note that there are some explanatory texts on larger screens.

plurals
  1. PONeeding an explanation regarding PHP extentions
    text
    copied!<p>Here is a quick overview:</p> <p>I just finished compiling PHP 5.3.5 and made the attempt to compile "--with" a number of different extensions. Among the extensions that I need are <strong>mbstring</strong> and <strong>intl</strong>. I can manually <strong>phpize, configure, make, make install</strong> the <strong>mbstring</strong> extension and it seems to work fine. However, I am unable to do the same for <strong>intl</strong>.</p> <p>My <em>./configure</em> line looks like this:</p> <pre><code>./configure --with-openssl --with-pcre-regex --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-mhash --enable-mbstring --with-mysql --enable-zip --enable-intl --with-icu-dir=... </code></pre> <p>The code compiles without problem: <strong><em>./configure... make, make install</em></strong></p> <p>I used the <strong>php.ini-production</strong> for my <strong>php.ini</strong> configuration and I configured Apache to use <strong>php-cgi</strong> for a specific domain, and that works fine as well.</p> <p>A quick:</p> <pre><code>&lt;?php phpinfo() ?&gt; </code></pre> <p>reveals that I am in fact running the newer version of PHP. However, the extensions specified in the "<strong>./configure...</strong>" line do not show up anywhere on the PHP info page.</p> <p>After a bit of scouting I found that I could run <strong>phpize</strong> on a single extension in the PHP source folder, then compile a build of the specific module and install it in my PHP extension directory. After adding:</p> <pre><code>extension=MY_EXT </code></pre> <p>in my php.ini, the extension showed up on my <strong>phpinfo()</strong> page.</p> <p>So can anyone explain why <strong>--with-mbstring</strong> doesn't seem to have an effect on my compilation?</p> <p>I had no compilation problems for the <strong>intl</strong> extension, but moving the <strong>intl.so</strong> file to my PHP extensions directory and adding an extension line in my php.ini has no effect.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload