PageRenderTime 92ms CodeModel.GetById 70ms app.highlight 2ms RepoModel.GetById 19ms app.codeStats 0ms

/hphp/test/zend/good/ext/spl/tests/bug40036.php

http://github.com/facebook/hiphop-php
PHP | 24 lines | 23 code | 1 blank | 0 comment | 6 complexity | 802550bb4c6a71a65475a0813dabe82c MD5 | raw file
 1<?php
 2class View extends ArrayObject
 3{
 4    public function __construct(array $array = array())
 5    {
 6        parent::__construct($array, ArrayObject::ARRAY_AS_PROPS);
 7    }
 8}
 9
10$view = new View();
11$view->foo = false;
12$view->bar = null;
13$view->baz = '';
14if (empty($view['foo']) || empty($view->foo)) {
15    echo "View::foo empty\n";
16}
17if (empty($view['bar']) || empty($view->bar)) {
18    echo "View::bar empty\n";
19}
20if (empty($view['baz']) || empty($view->baz)) {
21    echo "View::baz empty\n";
22}
23?>
24===DONE===