php-windows Digest 17 Oct 2009 08:31:27 -0000 Issue 3711

Topics (messages 29651 through 29661):

Re: PHP 5.2.11, Windows Vista and php_mbstring.dll
        29651 by: Richard Quadling
        29652 by: Magnus Anderson
        29653 by: Elizabeth M Smith
        29654 by: Magnus Anderson
        29655 by: Elizabeth M Smith
        29656 by: Carsten Wiedmann
        29657 by: Magnus Anderson
        29658 by: Magnus Anderson
        29660 by: Richard Quadling
        29661 by: Tommy Pham

[SOLVED] Windows Vista UAC Issue
        29659 by: Magnus Anderson

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 ---
2009/10/16 Magnus Anderson <mag...@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

--- End Message ---
--- Begin Message ---


Richard Quadling wrote:
> 
> 2009/10/16 Magnus Anderson <mag...@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)

-- 
View this message in context: 
http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25925514.html
Sent from the Php - Windows mailing list archive at Nabble.com.


--- End Message ---
--- Begin 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

--- End Message ---
--- Begin 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.
-- 
View this message in context: 
http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25926087.html
Sent from the Php - Windows mailing list archive at Nabble.com.


--- End Message ---
--- Begin 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

--- End Message ---
--- Begin 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


--- End Message ---
--- Begin 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.
-- 
View this message in context: 
http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25926539.html
Sent from the Php - Windows mailing list archive at Nabble.com.


--- End Message ---
--- Begin 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.
-- 
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.


--- End Message ---
--- Begin Message ---
2009/10/16 Magnus Anderson <mag...@sonic2000.org>:
>
>
>
> 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

--- End Message ---
--- Begin Message ---
----- Original Message ----
> From: Magnus Anderson <mag...@sonic2000.org>
> To: php-wind...@lists.php.net
> 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


--- End Message ---
--- Begin 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.
-- 
View this message in context: 
http://www.nabble.com/PHP-5.2.11%2C-Windows-Vista-and-php_mbstring.dll-tp25924777p25927042.html
Sent from the Php - Windows mailing list archive at Nabble.com.


--- End Message ---

Reply via email to