Home
last modified time | relevance | path

Searched refs:obj (Results 76 – 100 of 613) sorted by relevance

12345678910>>...25

/php-src/ext/reflection/tests/
H A D020.phpt15 $obj = new ReflectionObject(new Foo());
16 var_dump($obj->hasProperty("p1"));
17 var_dump($obj->hasProperty("p2"));
18 var_dump($obj->hasProperty("p3"));
19 var_dump($obj->hasProperty("p4"));
H A Dbug46103.phpt6 $obj = new stdClass;
7 $obj->r = new ReflectionObject($obj);
8 var_dump($obj);
/php-src/ext/standard/tests/strings/
H A Dstr_replace_array_refs2.phpt16 $obj = new SomeClass;
17 $obj->prop = ['x' => 'property'];
18 $obj->prop = $closure($obj->prop, ['x'], 'a');
19 var_dump(str_replace(array_keys($obj->prop), $obj->prop, "x property"));
/php-src/ext/spl/tests/
H A Dobserver_006.phpt89 ["obj"]=>
99 ["obj"]=>
121 ["obj"]=>
131 ["obj"]=>
149 ["obj"]=>
159 ["obj"]=>
169 ["obj"]=>
180 ["obj"]=>
208 ["obj"]=>
218 ["obj"]=>
[all …]
H A Dbug80663.phpt7 $GLOBALS['obj']->setSize(0);
11 $obj = new SplFixedArray(1000);
12 $obj[0] = new InvalidDestructor();
13 $obj->setSize(0);
H A Dfixedarray_018.phpt5 $obj = new SplFixedArray(2);
6 var_dump(count($obj));
12 $obj = new SplFixedArray2(2);
13 var_dump(count($obj));
/php-src/tests/lang/
H A DforeachLoopObjects.005.phpt15 $obj = new C;
17 foreach ($obj as $v) {
18 if ($v==$obj->a) {
19 unset($obj->c);
27 var_dump($obj);
30 $obj = new C;
31 foreach ($obj as $v) {
32 if ($v==$obj->b) {
33 unset($obj->a);
41 var_dump($obj);
H A DforeachLoopObjects.006.phpt15 $obj = new C;
23 $ref = &$obj;
25 foreach ($obj as $v) {
27 if ($v==$obj->b) {
35 var_dump($obj);
38 $obj = new C;
40 $ref = &$obj;
52 var_dump($obj);
56 $obj = new C;
62 $ref=$obj;
[all …]
/php-src/Zend/tests/
H A Dbug79900.phpt7 $obj = new stdClass;
8 $obj->obj = $obj;
H A Dassign_coalesce_001.phpt48 $obj = new stdClass;
49 $obj->foo ??= 123;
50 $obj->$foo ??= $bar;
51 $obj->$bar ??= $foo;
52 var_dump($obj);
54 $obj = new stdClass;
55 $obj->{id($foo)} ??= 123;
56 $obj->{id($foo)} ??= $bar;
57 $obj->{id($bar)} ??= $foo;
58 var_dump($obj);
H A Dbug71266.phpt8 $obj = (object) $arr;
9 foreach ($obj as $val) {
11 $obj->bar = 42;
15 $obj = (object) $arr;
16 next($obj);
H A Diap_on_object_deprecated.phpt6 $obj = (object)['a' => 'b'];
7 var_dump(reset($obj));
8 var_dump(current($obj));
9 var_dump(key($obj));
10 var_dump(next($obj));
11 var_dump(end($obj));
12 var_dump(prev($obj));
H A Dbug75420.8.phpt6 public function __set($x,$v) { $GLOBALS["obj"] = 24; var_dump($this); }
9 $obj = new Test;
11 $obj->$name = 1;
12 var_dump($obj);
/php-src/ext/spl/
H A Dphp_spl.c69 zval *obj; in PHP_FUNCTION() local
78 if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { in PHP_FUNCTION()
103 zval *obj; in PHP_FUNCTION() local
111 if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { in PHP_FUNCTION()
132 zval *obj; in PHP_FUNCTION() local
140 if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { in PHP_FUNCTION()
358 zend_object *obj; member
364 if (alfi->obj) { in autoload_func_info_destroy()
389 if (alfi->obj) { in autoload_func_info_from_fci()
407 return alfi1->obj == alfi2->obj in autoload_func_info_equals()
[all …]
/php-src/ext/curl/tests/
H A Dcurlopt_private.phpt8 $obj = new stdClass;
9 curl_setopt($curl, CURLOPT_PRIVATE, $obj);
10 var_dump($obj === curl_getinfo($curl, CURLINFO_PRIVATE));
13 var_dump($obj === curl_getinfo($curl2, CURLINFO_PRIVATE));
16 var_dump($obj === curl_getinfo($curl, CURLINFO_PRIVATE));
/php-src/Zend/tests/weakrefs/
H A Dgh10043-014.phpt12 $obj = new Value('a');
13 $map[$obj] = $obj;
17 $obj2 = $obj;
18 $obj = null;
H A Dgh10043-006.phpt12 $obj = new Value('a');
13 $map[$obj] = $obj;
17 $obj2 = $obj;
18 $obj = null;
H A Dweakmap_nested.phpt5 $obj = new stdClass;
8 $map[$obj] = $map2;
9 $map2[$obj] = 1;
11 unset($obj);
/php-src/ext/opcache/tests/jit/
H A Dassign_obj_ref_001.phpt10 $obj = new stdClass;
11 $obj->prop =& $obj;
12 var_dump($obj->prop);
H A Dfetch_obj_009.phpt11 $obj = new stdClass;
12 $obj->x[0] = null;
13 $obj->x > $obj->x[0] = null;
/php-src/ext/opcache/tests/opt/
H A Dinference_001.phpt11 $obj->x;
12 $obj = new stdClass;
23 $obj->x;
24 $obj = new Test;
31 Warning: Undefined variable $obj in %s on line %d
37 Warning: Undefined variable $obj in %s on line %d
/php-src/tests/classes/
H A Dclone_001.phpt11 $obj = new test;
12 $obj->p2 = 'A';
13 $obj->p3 = 'B';
14 $copy = clone $obj;
17 var_dump($obj);
/php-src/ext/standard/tests/class_object/
H A Dget_object_vars_variation_004.phpt8 $obj = (object)[
13 $obj->test = new class implements JsonSerializable {
15 var_dump(get_object_vars($GLOBALS['obj']));
20 var_dump(get_object_vars($obj));
23 json_encode($obj);
/php-src/ext/standard/tests/http/http_build_query/
H A Dhttp_build_query_variation1.phpt15 $obj = new stdClass;
16 $obj->name = 'homepage';
17 $obj->page = 1;
18 $obj->sort = 'desc,name';
20 echo http_build_query($obj) . PHP_EOL;
/php-src/ext/standard/tests/general_functions/
H A Dvar_export_error2.phpt5 $obj = new stdClass;
6 $obj->p =& $obj;
7 var_export($obj, true);

Completed in 55 milliseconds

12345678910>>...25