PHP 5.2.11, Windows Vista and php_mbstring.dll

View: New views
14 Messages — Rating Filter:   Alert me  

PHP 5.2.11, Windows Vista and php_mbstring.dll

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

I have a little problem with my installation of PHP 5.2.11 on my Windows Vista machine.
I've installed PHP from the Installation package located at PHP.net and I have made it install all modules for it. In my "C:\Program Files\PHP\ext" folder there are, among other files, a file called "php_mbstring.dll".

In my PHP.ini file I have among other lines, these two lines:
extension_dir ="C:\Program Files\PHP\ext"
extension=php_mbstring.dll

This seems like it should work for me, but it does not.

php -m reveales these modules:
------------------------
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
hash
iconv
imap
json
libxml
mcrypt
mysql
odbc
pcre
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
---------------------

What I can tell from the manual at http://se2.php.net/manual/en/mbstring.installation.php there are nothing that I need to install prior to the installation of mbstring functionality of PHP.

Can someone please tell me what I could do to make this work, I need mbstring support for my local development enviroment that I have on my windows machine.

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Richard Quadling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/16 Magnus Anderson <magnus@...>:

>
> Hello!
>
> I have a little problem with my installation of PHP 5.2.11 on my Windows
> Vista machine.
> I've installed PHP from the Installation package located at PHP.net and I
> have made it install all modules for it. In my "C:\Program Files\PHP\ext"
> folder there are, among other files, a file called "php_mbstring.dll".
>
> In my PHP.ini file I have among other lines, these two lines:
> extension_dir ="C:\Program Files\PHP\ext"
> extension=php_mbstring.dll
>
> This seems like it should work for me, but it does not.
>
> php -m reveales these modules:
> ------------------------
> [PHP Modules]
> bcmath
> calendar
> com_dotnet
> ctype
> date
> dom
> filter
> ftp
> hash
> iconv
> imap
> json
> libxml
> mcrypt
> mysql
> odbc
> pcre
> Reflection
> session
> SimpleXML
> SPL
> standard
> tokenizer
> wddx
> xml
> xmlreader
> xmlwriter
> zlib
>
> [Zend Modules]
> ---------------------
>
> What I can tell from the manual at
> http://se2.php.net/manual/en/mbstring.installation.php there are nothing
> that I need to install prior to the installation of mbstring functionality
> of PHP.
>
> Can someone please tell me what I could do to make this work, I need
> mbstring support for my local development enviroment that I have on my
> windows machine.
> --
> View this message in context: http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25924777.html
> Sent from the Php - Windows mailing list archive at Nabble.com.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

What is the output of

php --ini

--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Richard Quadling wrote:
2009/10/16 Magnus Anderson <magnus@sonic2000.org>:
>
> Hello!
>
> I have a little problem with my installation of PHP 5.2.11 on my Windows
> Vista machine.
> I've installed PHP from the Installation package located at PHP.net and I
> have made it install all modules for it. In my "C:\Program Files\PHP\ext"
> folder there are, among other files, a file called "php_mbstring.dll".
>
> In my PHP.ini file I have among other lines, these two lines:
> extension_dir ="C:\Program Files\PHP\ext"
> extension=php_mbstring.dll
>
> This seems like it should work for me, but it does not.
>
> php -m reveales these modules:
> ------------------------
> [PHP Modules]
> bcmath
> calendar
> com_dotnet
> ctype
> date
> dom
> filter
> ftp
> hash
> iconv
> imap
> json
> libxml
> mcrypt
> mysql
> odbc
> pcre
> Reflection
> session
> SimpleXML
> SPL
> standard
> tokenizer
> wddx
> xml
> xmlreader
> xmlwriter
> zlib
>
> [Zend Modules]
> ---------------------
>
> What I can tell from the manual at
> http://se2.php.net/manual/en/mbstring.installation.php there are nothing
> that I need to install prior to the installation of mbstring functionality
> of PHP.
>
> Can someone please tell me what I could do to make this work, I need
> mbstring support for my local development enviroment that I have on my
> windows machine.
> --
> View this message in context: http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25924777.html
> Sent from the Php - Windows mailing list archive at Nabble.com.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

What is the output of

php --ini

--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The output is:
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\Program Files\PHP\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Turn display startup errors on to see why modules won't load

Mbstring has an additional extension requirement - you MUST MUST enable
php_exif.dll before you enable mbstring

I swear this was in the docs at one point, wonder when it was removed

Thanks,
Elizabeth Smith

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Elizabeth M Smith wrote:
Turn display startup errors on to see why modules won't load

Mbstring has an additional extension requirement - you MUST MUST enable
php_exif.dll before you enable mbstring

I swear this was in the docs at one point, wonder when it was removed

Thanks,
Elizabeth Smith

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have now moved the loading around in the php.ini file to this:
[PHP_EXIF]
extension=php_exif.dll
[PHP_MBSTRING]
extension=php_mbstring.dll

I have also made these changes:
display_errors = On
display_startup_errors = On
log_errors = On
error_log="C:\Windows\temp\php-errors.log"

But I still only get an error like this:
Fatal error: Call to undefined function mb_strtolower() in <snip>/info.php on line 66

"php -m" does not report any more modules than before that gets loaded and php-error.log is empty.

An output of "phpinfo();" does not reveal anything helpful either.

It seems like most of the other modules are loading, but just not php_mbstring.dll for some reason.

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Carsten Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Elizabeth M Smith schrieb:
> Mbstring has an additional extension requirement - you MUST MUST enable
> php_exif.dll before you enable mbstring

It's vice versa.  exif have a dependence to mbstring. So if you want load
exif, you must first load mbstring.

But you can still use mbstring without exif.

Regards,
Carsten


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Magnus Anderson wrote:

>
>
> Elizabeth M Smith wrote:
>> Turn display startup errors on to see why modules won't load
>>
>> Mbstring has an additional extension requirement - you MUST MUST enable
>> php_exif.dll before you enable mbstring
>>
>> I swear this was in the docs at one point, wonder when it was removed
>>
>> Thanks,
>> Elizabeth Smith
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
> I have now moved the loading around in the php.ini file to this:
> [PHP_EXIF]
> extension=php_exif.dll
> [PHP_MBSTRING]
> extension=php_mbstring.dll
>
> I have also made these changes:
> display_errors = On
> display_startup_errors = On
> log_errors = On
> error_log="C:\Windows\temp\php-errors.log"
>
> But I still only get an error like this:
> Fatal error: Call to undefined function mb_strtolower() in <snip>/info.php
> on line 66
>
> "php -m" does not report any more modules than before that gets loaded and
> php-error.log is empty.
>
> An output of "phpinfo();" does not reveal anything helpful either.
>
> It seems like most of the other modules are loading, but just not
> php_mbstring.dll for some reason.

Hmmm - you sure it's getting the right ini file loaded? what file does
phpinfo tell you it's loading?  do other changes made to the ini get
processed?

Thanks,
Elizabeth Smith

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Elizabeth M Smith wrote:
Magnus Anderson wrote:
>
>
> Elizabeth M Smith wrote:
>> Turn display startup errors on to see why modules won't load
>>
>> Mbstring has an additional extension requirement - you MUST MUST enable
>> php_exif.dll before you enable mbstring
>>
>> I swear this was in the docs at one point, wonder when it was removed
>>
>> Thanks,
>> Elizabeth Smith
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
> I have now moved the loading around in the php.ini file to this:
> [PHP_EXIF]
> extension=php_exif.dll
> [PHP_MBSTRING]
> extension=php_mbstring.dll
>
> I have also made these changes:
> display_errors = On
> display_startup_errors = On
> log_errors = On
> error_log="C:\Windows\temp\php-errors.log"
>
> But I still only get an error like this:
> Fatal error: Call to undefined function mb_strtolower() in <snip>/info.php
> on line 66
>
> "php -m" does not report any more modules than before that gets loaded and
> php-error.log is empty.
>
> An output of "phpinfo();" does not reveal anything helpful either.
>
> It seems like most of the other modules are loading, but just not
> php_mbstring.dll for some reason.

Hmmm - you sure it's getting the right ini file loaded? what file does
phpinfo tell you it's loading?  do other changes made to the ini get
processed?

Thanks,
Elizabeth Smith

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It seems like it does not even read the php.ini file that I have set it to use.
phpinfo() sais the same thing
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\Program Files\PHP\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

But if I comment out all the rows of the modules it still loads all of them. Something is very strange here.

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Carsten Wiedmann wrote:
Elizabeth M Smith schrieb:
> Mbstring has an additional extension requirement - you MUST MUST enable
> php_exif.dll before you enable mbstring

It's vice versa.  exif have a dependence to mbstring. So if you want load
exif, you must first load mbstring.

But you can still use mbstring without exif.

Regards,
Carsten


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That is what I read to, but it still does not seem to be anything that helps me in my case here. No order of them makes php_mbstring.dll to load and work.

[SOLVED] Windows Vista UAC Issue

by Magnus Anderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This problem was an issue with the Windows Vista UAC functionality.
It created a php.ini file in my C:\Users\<username>\AppData\Local\VirtualStore\Program Files\PHP folder.

This is what UAC are supposed to do and on a personal machine, not a server, this is expected when running with UAC. I just never realized PHP was running as my user untill now.

For anyone getting an error like this when no changes that are made in the PHP.ini file on Vista, check if you have UAC on (you probebly do) and edit the file in your VirtualStore.

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Richard Quadling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/16 Magnus Anderson <magnus@...>:

>
>
>
> Carsten Wiedmann wrote:
>>
>> Elizabeth M Smith schrieb:
>>> Mbstring has an additional extension requirement - you MUST MUST enable
>>> php_exif.dll before you enable mbstring
>>
>> It's vice versa.  exif have a dependence to mbstring. So if you want load
>> exif, you must first load mbstring.
>>
>> But you can still use mbstring without exif.
>>
>> Regards,
>> Carsten
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
> That is what I read to, but it still does not seem to be anything that helps
> me in my case here. No order of them makes php_mbstring.dll to load and
> work.
> --
> View this message in context: http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25926558.html
> Sent from the Php - Windows mailing list archive at Nabble.com.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Are you editing C:\Program Files\PHP\php.ini

Try ...

php -c "C:\Program Files\PHP\php.ini" -m

"It seems like it does not even read the php.ini file that I have set
it to use."

Where did you set the ini file path ?


You've got several places.

I prefer the registry...

[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5]
"IniFilePath"="D:\\PHP\\INI"


--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Tommy Pham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

----- Original Message ----

> From: Magnus Anderson <magnus@...>
> To: php-windows@...
> Sent: Fri, October 16, 2009 5:40:53 AM
> Subject: [PHP-WIN] PHP 5.2.11, Windows Vista and php_mbstring.dll
>
>
> Hello!
>
> I have a little problem with my installation of PHP 5.2.11 on my Windows
> Vista machine.
> I've installed PHP from the Installation package located at PHP.net and I
> have made it install all modules for it. In my "C:\Program Files\PHP\ext"
> folder there are, among other files, a file called "php_mbstring.dll".
>
> In my PHP.ini file I have among other lines, these two lines:
> extension_dir ="C:\Program Files\PHP\ext"
> extension=php_mbstring.dll
>
> This seems like it should work for me, but it does not.
>
> php -m reveales these modules:
> ------------------------
> [PHP Modules]
> bcmath
> calendar
> com_dotnet
> ctype
> date
> dom
> filter
> ftp
> hash
> iconv
> imap
> json
> libxml
> mcrypt
> mysql
> odbc
> pcre
> Reflection
> session
> SimpleXML
> SPL
> standard
> tokenizer
> wddx
> xml
> xmlreader
> xmlwriter
> zlib
>
> [Zend Modules]
> ---------------------
>
> What I can tell from the manual at
> http://se2.php.net/manual/en/mbstring.installation.php there are nothing
> that I need to install prior to the installation of mbstring functionality
> of PHP.
>
> Can someone please tell me what I could do to make this work, I need
> mbstring support for my local development enviroment that I have on my
> windows machine.
> --
> View this message in context:
> http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25924777.html
> Sent from the Php - Windows mailing list archive at Nabble.com.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Tommy Pham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

----- Original Message ----

> From: Magnus Anderson <magnus@...>
> To: php-windows@...
> Sent: Fri, October 16, 2009 5:40:53 AM
> Subject: [PHP-WIN] PHP 5.2.11, Windows Vista and php_mbstring.dll
>
>
> Hello!
>
> I have a little problem with my installation of PHP 5.2.11 on my Windows
> Vista machine.
> I've installed PHP from the Installation package located at PHP.net and I
> have made it install all modules for it. In my "C:\Program Files\PHP\ext"
> folder there are, among other files, a file called "php_mbstring.dll".
>
> In my PHP.ini file I have among other lines, these two lines:
> extension_dir ="C:\Program Files\PHP\ext"
> extension=php_mbstring.dll
>
> This seems like it should work for me, but it does not.
>
> php -m reveales these modules:
> ------------------------
> [PHP Modules]
> bcmath
> calendar
> com_dotnet
> ctype
> date
> dom
> filter
> ftp
> hash
> iconv
> imap
> json
> libxml
> mcrypt
> mysql
> odbc
> pcre
> Reflection
> session
> SimpleXML
> SPL
> standard
> tokenizer
> wddx
> xml
> xmlreader
> xmlwriter
> zlib
>
> [Zend Modules]
> ---------------------
>
> What I can tell from the manual at
> http://se2.php.net/manual/en/mbstring.installation.php there are nothing
> that I need to install prior to the installation of mbstring functionality
> of PHP.
>
> Can someone please tell me what I could do to make this work, I need
> mbstring support for my local development enviroment that I have on my
> windows machine.
> --
> View this message in context:
> http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25924777.html
> Sent from the Php - Windows mailing list archive at Nabble.com.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Magnus,

Argh... sorry about that.  Firefox + Yahoo mail lagged for a sec.  Any way, are the following in your System Path?

C:\Program Files\PHP
C:\Program Files\PHP\ext

Regards,
Tommy


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: PHP 5.2.11, Windows Vista and php_mbstring.dll

by Richard Quadling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/17 Tommy Pham <tommyhp2@...>:

> ----- Original Message ----
>> From: Magnus Anderson <magnus@...>
>> To: php-windows@...
>> Sent: Fri, October 16, 2009 5:40:53 AM
>> Subject: [PHP-WIN] PHP 5.2.11, Windows Vista and php_mbstring.dll
>>
>>
>> Hello!
>>
>> I have a little problem with my installation of PHP 5.2.11 on my Windows
>> Vista machine.
>> I've installed PHP from the Installation package located at PHP.net and I
>> have made it install all modules for it. In my "C:\Program Files\PHP\ext"
>> folder there are, among other files, a file called "php_mbstring.dll".
>>
>> In my PHP.ini file I have among other lines, these two lines:
>> extension_dir ="C:\Program Files\PHP\ext"
>> extension=php_mbstring.dll
>>
>> This seems like it should work for me, but it does not.
>>
>> php -m reveales these modules:
>> ------------------------
>> [PHP Modules]
>> bcmath
>> calendar
>> com_dotnet
>> ctype
>> date
>> dom
>> filter
>> ftp
>> hash
>> iconv
>> imap
>> json
>> libxml
>> mcrypt
>> mysql
>> odbc
>> pcre
>> Reflection
>> session
>> SimpleXML
>> SPL
>> standard
>> tokenizer
>> wddx
>> xml
>> xmlreader
>> xmlwriter
>> zlib
>>
>> [Zend Modules]
>> ---------------------
>>
>> What I can tell from the manual at
>> http://se2.php.net/manual/en/mbstring.installation.php there are nothing
>> that I need to install prior to the installation of mbstring functionality
>> of PHP.
>>
>> Can someone please tell me what I could do to make this work, I need
>> mbstring support for my local development enviroment that I have on my
>> windows machine.
>> --
>> View this message in context:
>> http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25924777.html
>> Sent from the Php - Windows mailing list archive at Nabble.com.
>>
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Magnus,
>
> Argh... sorry about that.  Firefox + Yahoo mail lagged for a sec.  Any way, are the following in your System Path?
>
> C:\Program Files\PHP
> C:\Program Files\PHP\ext
>
> Regards,
> Tommy
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

No need to have the extensions folder in the path as this folder is
defined within the php.ini file.



--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php