<?php global $y; class x { static $a; public $b = 2; function y(Stdclass $y = null, $yy = 2, Stdclass $yyy) { } } trait t { static $at; public $bt = 2; function y(Stdclass $yt = null, $yyt = 2, Stdclass $yyyt) { $real = 3; } } Stdclass::$staticproperty = 0; $o->{$dynamicProperty} = 0;
<?php crypt(1); crypt(1, 2); crypt(1, 2, 3); $x->crypt(4); // this is a method Stdclass::crypt(5); // this is a class method
<?php defined('C'); constant('E'); define('d'); $a->constant('F'); Stdclass::DEFINED('G');
<?php // OK $a = 'a' . "b"; $b = true * "b"; $c = null + 2.2; $d = 'a' . strtolower("b"); $d = 'a' . rand("b"); // could do but needs 'determinist' functions $e = 2 << 3; $f = !(2 + 4 - 4); $g = (6 and 7); $h = 8 ^ 9; $h = 8 ** CONSTANTE; $i = 'a' . Stdclass::c; // KOK $A = 'a' . $a; $B = __DIR__ + 1; $C = 'a' . $a->b; $E = 'a' . Stdclass::$D; $E = 'a' % Stdclass::D(); $E = 'a' >> $c->d();
<?php $a->response->statusCode(); Stdclass::encoding(); cookie();
<?php mcrypt_create_iv(1); mcrypt_create_iv(1, 2); mcrypt_create_iv(1, 2, 3); $x->mcrypt_create_iv(4); // this is a method Stdclass::mcrypt_create_iv(5); // this is a class method
<?php \define('+3', 1); // wrong constant! $x->define('3method', 2); // not a functioncall ! Stdclass::define('4staticmethod', 3); // not a functioncall !
<?php crypt(); CRYpt(1); crypt(2, 3); crypt(4, 5, 6, 7); \getopt(); \GETOPT(1); \getopt(2, 3); $o->phpinfo(); Stdclass::assert_options();
<?php a("b", $this->c, Stdclass::d, \e\f, Stdclass::$g, $this->h(), Stdclass::i());
function nonRecursive($x) { $y = new Stdclass(); $y->nonRecursive(); }
<?php $x->htmlentities(); Stdclass::htmlentities(1, 2);
<?php Stdclass::print_r($ko_static); $x->print_r($ko_method); \print_r($OK); VAR_DUMP($OK);