difference between --enable-mbstring and --enable-mbstring=shared

Hi,

What is the difference between --enable-mbstring and --enable-
mbstring=shared ?
I have an old RHEL3 with lots of customizations (don't ask wich ones,
no one knows) where mb_strtoupper, ... works. Via phpinfo I find --
enable-mbstring.
I have a new installation of SL4.4. With php.info I find --enable-
mbstring=shared. mb_strtoupper doens't work (undefined function).

Can anyone help me out ?

thanx,

Pugi
puginews [ Mi, 02 Mai 2007 09:59 ] [ ID #1702944 ]

Re: difference between --enable-mbstring and --enable-mbstring=shared

Pugi! wrote:
> Hi,
>
> What is the difference between --enable-mbstring and --enable-
> mbstring=shared ?
> I have an old RHEL3 with lots of customizations (don't ask wich ones,
> no one knows) where mb_strtoupper, ... works. Via phpinfo I find --
> enable-mbstring.
> I have a new installation of SL4.4. With php.info I find --enable-
> mbstring=shared. mb_strtoupper doens't work (undefined function).
>
> Can anyone help me out ?
>
> thanx,
>
> Pugi
>


Difference is that one use dynamic linking, the other static linking.
Theoretically it shouldn't matter if you use either. The only difference
should be when you upgrade your mbstring library. When using static
linking (ie. not shared), PHP still use the OLD library, because the
compiler "built" it in the PHP "executable", while dynamic linking will
see PHP using the new updated library.

Hendri Kurniawan
Hendri Kurniawan [ Do, 03 Mai 2007 01:42 ] [ ID #1703838 ]
PHP » alt.php » difference between --enable-mbstring and --enable-mbstring=shared

Vorheriges Thema: Strange fatal error in terminal
Nächstes Thema: GD CPU/memory requirements