]> granicus.if.org Git - php/commitdiff
- Support the string offset syntax $a{2} with the regular array opcodes.
authorAndi Gutmans <andi@php.net>
Sun, 6 Feb 2000 20:18:35 +0000 (20:18 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 6 Feb 2000 20:18:35 +0000 (20:18 +0000)
  Will need to write new opcodes sometime but right now it's good enough
  to announce the change to this string offset syntax for beta 4.

Zend/zend_compile.c

index 0ba66fa1f54f8b236d0192d53db1dda332b39e3e..ff98273866c0bd26f59a895a14d3c5858b88b9b5 100644 (file)
@@ -295,6 +295,7 @@ void fetch_array_dim(znode *result, znode *parent, znode *dim CLS_DC)
 
 void fetch_string_offset(znode *result, znode *parent, znode *offset CLS_DC)
 {
+       fetch_array_dim(result, parent, offset CLS_CC);
 }