2008/3/23 Marcus Boerger <[EMAIL PROTECTED]>:
> Hello Rui,
>
>   many thanks!!!
>
>  Sunday, March 23, 2008, 12:40:59 PM, you wrote:
>
>  > Hello Marcus,
>
>  > I try to prepare some short test scripts for zend-multibyte stuff.
>
>  > It is like,
>
>  > <?php
>  >  declare(encoding='Shift_JIS');
>  >  $s = "表"; // 0x95+0x5c
>  >  printf("%x %x\n",ord($s{0}),ord($s{1})); // expected: 95 5c
>  ?>>
>
>  > The problems to prepare the test scripts are,
>  > 1. php binary should be compiled with --enable-zend-multibyte option.
>
>  You can provide a --SKIPIF-- section to detect MB support 
> (http://qa.php.net/write-test.php ).
>  --SKIPIF--
>  <?php
>  if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
>   die "skip Requires --enable-zend-multibyte option";

WTF? Where did that INI entry come from? :)

It isn't in php.ini-dist and the only docs I can find is
(http://no.php.net/manual/en/ini.php):
detect_unicode          "1"     PHP_INI_ALL     Available since PHP 5.1.0.
Removed in PHP 6.0.0.

Is it really PHP_INI_ALL? That doesn't make much sense to me. I
thought the multibyte scanning was compile time?
(Or is it like the current short_tags proposal;
ini_set("detect_unicode"); include "..."; ?)

-Hannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to