php-windows Digest 15 Dec 2013 11:11:38 -0000 Issue 4161

Topics (messages 31193 through 31195):

Re: phpinfo() not finding intl and mbstring
        31193 by: Good Guy
        31194 by: Wendell P
        31195 by: Pierre Joye

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 14/12/2013 21:37, Wendell P wrote:
With PHP 5.5.6 VC11 x64 Non Thread Safe:

I unpacked the distribution on my machine, keeping the default file
structure but also installing a PECL extension in \ext. Running from the
CLI, everything seems to be working. However, phpinfo() indicates that
the intl and mbstring extensions are not loaded. Also, "php -i" says
they are not loaded but "php -m" says that they are. I tested functions
from both extensions and they are working.

Looking online, it seems this problem has existed for several years.
People look at phpinfo() and think that mbstring and intl aren't loaded.
The Linux distribution doesn't display this problem.



Have you enabled mbstring in your php.ini file?  to do this change:

;extension=php_mbstring.dll

to

extension=php_mbstring.dll

Similarly change:  ;extension=php_intl.dll

to

extension=php_intl.dll

when you have made the changes, restart the server so that changes takes effect.

Good luck.




--- End Message ---
--- Begin Message ---
On Sat, Dec 14, 2013, at 01:59 PM, Good Guy wrote:
> On 14/12/2013 21:37, Wendell P wrote:
> > ... phpinfo() indicates that
> > the intl and mbstring extensions are not loaded. Also, "php -i" says
> > they are not loaded but "php -m" says that they are. I tested functions
> > from both extensions and they are working.
>
> Have you enabled mbstring in your php.ini file?  

Yes, I did all that and intl & mbstring are working fine. The problem is
that phpinfo() does not show that they are loaded. It seems to be
because phpinfo() lists all loaded modules alphabetically starting from
"odbc".


-- 
http://www.fastmail.fm - Access your email from home and the web


--- End Message ---
--- Begin Message ---
On Sat, Dec 14, 2013 at 10:37 PM, Wendell P <wende...@operamail.com> wrote:
> With PHP 5.5.6 VC11 x64 Non Thread Safe:
>
> I unpacked the distribution on my machine, keeping the default file
> structure but also installing a PECL extension in \ext. Running from the
> CLI, everything seems to be working. However, phpinfo() indicates that
> the intl and mbstring extensions are not loaded. Also, "php -i" says
> they are not loaded but "php -m" says that they are. I tested functions
> from both extensions and they are working.
>
> Looking online, it seems this problem has existed for several years.
> People look at phpinfo() and think that mbstring and intl aren't loaded.
> The Linux distribution doesn't display this problem.

There is no bug here but surely a configuration issue.

Double checks which php.ini are loaded, with apache (or any other
SAPI/server you use), CLI or the embedded webserver.

I do not see a valid reason why "php -m" or "php -i" would show
different loaded modules as both will use the same ini. Please check
if you do not have many php installs, could be a possible source of
troubles.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org

--- End Message ---

Reply via email to