8

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

Vladislav Rastrusny
  • 2,671
  • 12
  • 42
  • 56

3 Answers3

5

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).

Jenny D
  • 27,780
  • 21
  • 75
  • 114
Pipe
  • 191
  • 3
4

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

blueyed
  • 773
  • 8
  • 13
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.

pehrs
  • 8,789
  • 1
  • 30
  • 46