<?php return (bool) ($a->b() & $c); return (bool) (a::b() & $c); return (bool) ($a::b() & $c);
<?php class a { function b() { echo "hi\n"; } } class d { function e() { echo "hello\n"; } function f() { echo "hey\n"; } } $c = new a(); $c->b(); var_dump($c);
<?php echo a::b($c[d]) . 'e' . $f['g'] . 'h';
<?php while (fgetcsv($fp, 1000, "\t", '"')) { $frels++; } while (a::b($fp, 1000, "\t", '"')) { $frels++; } while ($c->d($fp, 1000, "\t", '"')) { $frels++; } while (strtolower('D')) { $frels++; }
--TEST-- Bug #124 --FILE-- <?php class a { static function b() { $c = function () { $d = empty($e->f); $f = isset($e->f); var_dump($d, $f); }; $c(); } } a::b(); ?> --EXPECT-- bool(true) bool(false)
<?php echo '1', $x, $y[1][2] . '2' . a::b(3);
<?php a::b() + $c->d * (1 - 2 / $e) * $g->h;
public function aa($var) { echo $var, ': ', xdebug_call_class(), '>', xdebug_call_function(), ' @ ', xdebug_call_file(), ':', xdebug_call_line(), "\n"; a::b($var + 1); }
<?php //array('Variable', 'Property', 'Staticproperty', 'Staticconstant', 'Methodcall', 'Staticmethodcall', 'Functioncall', 'Identifier', 'Nsname') foo(...$a); foo(...$a->b); foo(...$a->b()); foo(...a::b); foo(...a::$b); foo(...a::b()); foo(...a()); foo(...a); foo(...\a); FOO($A); FOO($A->B); FOO($A->B()); FOO(A::B); FOO(A::$B); FOO(A::B()); FOO(A()); FOO(A); FOO(\A);