Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is exactly --enable-zend-multibyte option for when you ./configure PHP?

share|improve this question
There's some info at… – Pacerier Oct 27 '14 at 1:10
up vote 4 down vote accepted

It is to be able to detect if PHP scripts are Unicode/Multibyte encoded or not (UTF-8 always works and does not need this setting).

I've found this information in this article (archived copy, the article itself is outdated).

share|improve this answer
"are Unicode encoded or not" is extremely vague. Are there details regarding its implementation? – Pacerier Oct 27 '14 at 1:08
The link is dead – ThaDafinser Jun 12 '15 at 7:18

It is a prerequisite for declare(encoding) handling.

Apart from that, I have filed a bug about the lack of documentation for this:

share|improve this answer

The configuration option --enable-zend-multibyte is part of the zend scripting engine and used for auto-detection of Unicode encoded scripts and files. It looks for BOM (byte order marks) in the begining of the file and uses that to figure out the encoding.

share|improve this answer
I don't think it is a part of Zend Framework actually. Because Zend Framework is a collection of PHP scripts ;) – Vladislav Rastrusny May 27 '10 at 13:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.