summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30346.phpt
blob: a158d0c40b917c0233f6142479d8330818e59ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Bug 30346 (arrayAcces & using $this)
--FILE--
<?php

class Test implements ArrayAccess
{
        public function __construct() { }       
        public function offsetExists( $offset ) { return false; }
        public function offsetGet( $offset ) { return $offset; }
        public function offsetSet( $offset, $data ) { }
        public function offsetUnset( $offset ) { }
}

$post = new Test;
$id = 'page';
echo $post[$id.'_show'];
echo "\n";

?>
===DONE===
--EXPECT--
page_show
===DONE===