Discussion:
phpinfo() not finding intl and mbstring
Wendell P
2013-12-14 21:37:49 UTC
Permalink
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.
--
http://www.fastmail.fm - Faster than the air-speed velocity of an
unladen european swallow
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good Guy
2013-12-14 21:59:49 UTC
Permalink
Post by Wendell P
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.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wendell P
2013-12-15 03:18:26 UTC
Permalink
Post by Good Guy
... 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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good Guy
2013-12-16 04:12:07 UTC
Permalink
Post by Wendell P
Post by Good Guy
... 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".
You need to check your phpinfo() output file to tell you which ini file
is loaded. It looks like you have two; One in the Windows folder and
one in the php folder.

Only one file should be on the system otherwise it gets confused.

Good luck.
--
Good Guy
Website: http://mytaxsite.co.uk
Website: http://html-css.co.uk
Email: http://mytaxsite.co.uk/contact-us
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wendell P
2013-12-17 01:35:32 UTC
Permalink
--
Wendell P
Post by Wendell P
Post by Good Guy
... phpinfo() indicates that
the intl and mbstring extensions are not loaded
Have you enabled mbstring in your php.ini file?
Yes, I did all that and intl & mbstring are working fine.
It looks like you have two; One in the Windows folder and one in the php folder.
I searched the whole C: drive, there is only one php.ini.

This problem does not prevent PHP from working, but there is definitely
a bug in phpinfo().
The OS is Windows 7 Korean, if that is any help.
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Quadling
2013-12-17 14:00:20 UTC
Permalink
Post by Wendell P
--
Wendell P
Post by Wendell P
Post by Good Guy
... phpinfo() indicates that
the intl and mbstring extensions are not loaded
Have you enabled mbstring in your php.ini file?
Yes, I did all that and intl & mbstring are working fine.
It looks like you have two; One in the Windows folder and one in the
php folder.
I searched the whole C: drive, there is only one php.ini.
This problem does not prevent PHP from working, but there is definitely
a bug in phpinfo().
The OS is Windows 7 Korean, if that is any help.
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At the command line, try ...

php --ini

Can you show the response and then the top block of phpinfo() which shows
which configuration files have been loaded.
--
Richard Quadling
Twitter : @RQuadling
Wendell P
2013-12-18 01:34:49 UTC
Permalink
Post by Richard Quadling
Post by Good Guy
Post by Wendell P
Post by Good Guy
... phpinfo() indicates that
the intl and mbstring extensions are not loaded
Have you enabled mbstring in your php.ini file?
Yes, I did all that and intl & mbstring are working fine.
It looks like you have two; One in the Windows folder and one in the
php folder.
At the command line, try ...
php --ini
Can you show the response and then the top block of phpinfo() which shows
which configuration files have been loaded.
php --ini gives the expected result, something like:
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\...\PHP\php.ini

PHP is finding and loading the php.ini without problem. The problem is
that when
I run phpinfo(), everything before "odbc" is chopped off. So I can't
show the top
block of phpinfo(), because it doesn't print out.
--
http://www.fastmail.fm - Accessible with your email software
or over the web
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good Guy
2013-12-18 02:46:03 UTC
Permalink
Post by Wendell P
Post by Richard Quadling
Post by Good Guy
Post by Wendell P
Post by Good Guy
... phpinfo() indicates that
the intl and mbstring extensions are not loaded
Have you enabled mbstring in your php.ini file?
Yes, I did all that and intl & mbstring are working fine.
It looks like you have two; One in the Windows folder and one in the
php folder.
At the command line, try ...
php --ini
Can you show the response and then the top block of phpinfo() which shows
which configuration files have been loaded.
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\...\PHP\php.ini
PHP is finding and loading the php.ini without problem. The problem is
that when
I run phpinfo(), everything before "odbc" is chopped off. So I can't
show the top
block of phpinfo(), because it doesn't print out.
So you are seeing something like this:

<Loading Image...>

Look at the boxed item for my localhost installation on Windows 7 and
Windows 8.1.
--
Good Guy
Website: http://mytaxsite.co.uk
Website: http://html-css.co.uk
Email: http://mytaxsite.co.uk/contact-us
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wendell P
2013-12-19 03:03:55 UTC
Permalink
Post by Wendell P
Post by Richard Quadling
Can you show the response and then the top block of phpinfo() which shows
which configuration files have been loaded.
PHP is finding and loading the php.ini without problem. The problem is
that when
I run phpinfo(), everything before "odbc" is chopped off. So I can't
show the top
block of phpinfo(), because it doesn't print out.
I am just using the CLI. There is no web server on this machine and it
is not
connected to the network. The only thing installed is what was in the
Windows
binary download, plus the stats PECL extension in \ext.

Here is php --ini
http://postimg.org/image/v3y83qcg3/

Here is the top of php -i
http://postimg.org/image/go3g2ct4f/
--
http://www.fastmail.fm - Send your email first class
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Quadling
2013-12-20 16:04:45 UTC
Permalink
Post by Wendell P
Post by Wendell P
Post by Richard Quadling
Can you show the response and then the top block of phpinfo() which
shows
Post by Wendell P
Post by Richard Quadling
which configuration files have been loaded.
PHP is finding and loading the php.ini without problem. The problem is
that when
I run phpinfo(), everything before "odbc" is chopped off. So I can't
show the top
block of phpinfo(), because it doesn't print out.
I am just using the CLI. There is no web server on this machine and it
is not
connected to the network. The only thing installed is what was in the
Windows
binary download, plus the stats PECL extension in \ext.
Here is php --ini
http://postimg.org/image/v3y83qcg3/
Here is the top of php -i
http://postimg.org/image/go3g2ct4f/
--
http://www.fastmail.fm - Send your email first class
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doh!

3 options come to mind.


1 : log the output to a file.

php -i > phpinfo.log


2 : use more

php -i | more


3 - Increase the window buffer size. You can use the properties dialog to
go upto 9999 lines, or if you want to edit the registry directly, 32767
lines.
--
Richard Quadling
Twitter : @RQuadling
Wendell P
2013-12-21 03:05:10 UTC
Permalink
Post by Richard Quadling
Post by Wendell P
PHP is finding and loading the php.ini without problem. The problem is
that when
I run phpinfo(), everything before "odbc" is chopped off. So I can't
show the top
block of phpinfo(), because it doesn't print out.
Doh!
3 - Increase the window buffer size. You can use the properties dialog to
go upto 9999 lines, or if you want to edit the registry directly, 32767
lines.
"Doh!" is right. I didn't even know about that setting. I increased the
buffer
from 300 to 900 lines and all is well. Thanks.
--
http://www.fastmail.fm - A no graphics, no pop-ups email service
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Pierre Joye
2013-12-15 11:11:32 UTC
Permalink
Post by Wendell P
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...