# [RFC] Const array/string dereference

- Thread: https://externals.io/message/56676
- Original archive: https://news-web.php.net/php.internals/56676
- Started by Laruence on 2011-11-30T06:06:07+00:00
- Messages: 4
- 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

---

## #56676 — Laruence — 2011-11-30T06:06:07+00:00

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

Hi:

   base on feature request: https://bugs.php.net/bug.php?id=60408 , I
wrote a patch to make php support const array/string dereference

   rfc is here, https://wiki.php.net/rfc/constdereference

   any opinions?

thanks

-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56679 — Peter Cowburn — 2011-11-30T09:23:19+00:00

URL: https://externals.io/message/56676#56679 · In reply to: #56676

Hi Laruence et al.


> Hi:
>
>   base on feature request: https://bugs.php.net/bug.php?id=60408 , I
> wrote a patch to make php support const array/string dereference
>
>   rfc is here, https://wiki.php.net/rfc/constdereference
>
>   any opinions?

Could you pad out the RFC a little, it is very sparse in information
at the moment. What is the rationale behind this new feature? "A small
change to make things consistent." Consistent with what? If you want
to be consistent, where is the {$i} support (although the same can be
said for function array dereferencing with curly braces)?

I can't comment on the patch/tests as your site seems to be
unavailable at the moment.

>
> thanks
>
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/

---

## #56680 — Laruence — 2011-11-30T09:49:35+00:00

URL: https://externals.io/message/56676#56680 · In reply to: #56679

Hi peter:


> Hi Laruence et al.
>
> 
> > […]
>
> Could you pad out the RFC a little, it is very sparse in information
> at the moment. What is the rationale behind this new feature? "A small
> change to make things consistent." Consistent with what? If you want
Constitent with array deference,  like some other languages :)
> to be consistent, where is the {$i} support (although the same can be
I coud  add '{' '}' support if we search a consensus that it is need.
but since array dereference didn't do that, so neither do I.

> said for function array dereferencing with curly braces)?
>
> I can't comment on the patch/tests as your site seems to be
> unavailable at the moment.
thanks to damned chinese great fire wall.... I uploaded the patch to
the bug report entry :)
>
> > […]

thanks

-- 
Laruence  Xinchen Hui
http://www.laruence.com/

---

## #56877 — Laruence — 2011-12-12T02:45:45+00:00

URL: https://externals.io/message/56676#56877 · In reply to: #56680

Hi:
   reminding for discussion :)

thanks


> Hi peter:
>
> 
> > […]
> Constitent with array deference,  like some other languages :)
> > […]
> I coud  add '{' '}' support if we search a consensus that it is need.
> but since array dereference didn't do that, so neither do I.
>
> > […]
> thanks to damned chinese great fire wall.... I uploaded the patch to
> the bug report entry :)
> > […]
>
> thanks
>
> --
> Laruence  Xinchen Hui
> http://www.laruence.com/



-- 
Laruence  Xinchen Hui
http://www.laruence.com/
