php-src/Zend/tests/bug30346.phpt

25 lines
507 B
Plaintext
Raw Normal View History

2005-04-23 15:21:07 +00:00
--TEST--
2005-12-03 00:00:55 +00:00
Bug #30346 (arrayAccess and using $this)
2005-04-23 15:21:07 +00:00
--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
2005-12-02 16:00:45 +00:00
===DONE===