# Unicoding

- Thread: https://externals.io/message/27121
- Original archive: https://news-web.php.net/php.internals/27121
- Started by Marcus Boerger on 2006-12-19T21:07:35+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27121 — Marcus Boerger — 2006-12-19T21:07:35+00:00

URL: https://externals.io/message/27121#27121

Hello all,

  i am doing some unicode stuff and missng a few things and found a
few issues:

- ZVAL_STRL() is inconsistent with the rest of the ZVAL_*L().
  The former has order: zval, zstr, len, type, flags
  while the others have the order: zval, value, len, flags
  Since a zstr value is defined by the string and the type the
  order should be: zval, zstr, type, len, flags

  I discussed this with Andrei and will commit in a bit.

- zend_call_methods has no zend_u_call_method version, see patch

- parameter parsing doesn't allow to receive a string in current
  run-time setting. I will introduce a new parameter parsing option
  'x' that gets replaced by either 's' or 'u' depending on UG(unicode).
  This is pretty useful inside spl, pdo, reflection and anything else
  that deals with functions, classes, ..., see patch

Comments?

Best regards,
 Marcus

---

## #27123 — Andrei Zmievski — 2006-12-19T22:03:53+00:00

URL: https://externals.io/message/27121#27123 · In reply to: #27121

> - zend_call_methods has no zend_u_call_method version, see patch

Good catch.

> - parameter parsing doesn't allow to receive a string in current
>   run-time setting. I will introduce a new parameter parsing option
>   'x' that gets replaced by either 's' or 'u' depending on UG(unicode).
>   This is pretty useful inside spl, pdo, reflection and anything else
>   that deals with functions, classes, ..., see patch
>
> Comments?

This is fine with me.

-Andrei
