mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
23 lines
478 B
PHP
23 lines
478 B
PHP
--TEST--
|
|
Bug #30346 (arrayAccess and 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";
|
|
|
|
?>
|
|
--EXPECT--
|
|
page_show
|