Jump to content
The Uniform Server Community
Sign in to follow this  
kmiraji

Mbstring Problem

Recommended Posts

Hi Team,

I am planning to use Laravel PHP Framework and I hit a snag because of mbstring problem. I get the following result when I run the command:

C:\UniServer>php --ri mbstring
Extension 'mbstring' not present.

I have followed the mbstring installation instruction from php.net to no avail. Could be that I am missing something somewhere.

Below is the extract from my php.ini regarding extensions

; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "C:/UniServer/usr/local/php/extensions"

and..

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll

The following is the portion for mbstring configs..

[mbstring]
; language for internal character representation.
; http://php.net/mbstring.language
mbstring.language = English

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://php.net/mbstring.internal-encoding
mbstring.internal_encoding = UTF-8

; http input encoding.
; http://php.net/mbstring.http-input
mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://php.net/mbstring.http-output
mbstring.http_output = auto

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://php.net/mbstring.encoding-translation
mbstring.encoding_translation = On

; automatic encoding detection order.
; auto means
; http://php.net/mbstring.detect-order
mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://php.net/mbstring.substitute-character
mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://php.net/mbstring.func-overload
mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

 

And here is the portion of phpinfo()

Multibyte Support			enabled
Multibyte string engine			libmbfl
HTTP input encoding translation		enabled
libmbfl version				1.3.2

Multibyte (japanese) regex support 	enabled
Multibyte regex (oniguruma) version 	4.7.1 

Directive				Local Value			Master Value
mbstring.detect_order			auto				auto
mbstring.encoding_translation		On				On
mbstring.func_overload			0				0
mbstring.http_input			auto				auto
mbstring.http_output			auto				auto
mbstring.http_output_conv_mimetypes	^(text/|application/xhtml\+xml)	^(text/|application/xhtml\+xml)
mbstring.internal_encoding		UTF-8				UTF-8
mbstring.language			English				English
mbstring.strict_detection		Off				Off
mbstring.substitute_character		no value			no value

 

No matter what I still get the same result 'mbstring not present'.

 

My system is Windows7 64bit with Uniserver 8.6.7 Coral.

Your assistance will be highly appreciated.

 

Thanks

Share this post


Link to post
Share on other sites

I think you should be looking at C:\UniServer\usr\local\php\php-cli.ini. Enable extension there and test. That can solve your issue.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...