7

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

4

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 http://devzone.zend.com/article/2693 (archived copy, the article itself is outdated).

  • "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
3

It is a prerequisite for declare(encoding) handling.

Apart from that, I have filed a bug about the lack of documentation for this: http://bugs.php.net/bug.php?id=52348

0

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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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