Home
last modified time | relevance | path

Searched refs:obj (Results 126 – 150 of 613) sorted by relevance

12345678910>>...25

/php-src/tests/classes/
H A Dincdec_property_002.phpt22 $obj = new Test;
23 var_dump($obj->a);
24 $t1 = $obj->a++;
25 var_dump($obj->a);
H A Dincdec_property_004.phpt22 $obj = new Test;
23 var_dump($obj->a);
24 $t1 = ++$obj->a;
25 var_dump($obj->a);
H A Dtostring_004.phpt13 $obj = new stdClass;
16 printf($obj);
24 printf($obj . "\n");
36 $obj = new badToString;
39 printf($obj);
47 printf($obj . "\n");
/php-src/ext/spl/tests/SplFileObject/
H A Dbug65545.phpt5 $obj = new SplFileObject(__FILE__, 'r');
6 $data = $obj->fread(5);
10 $data = $obj->fread(0);
17 $data = $obj->fread(filesize(__FILE__) + 32);
/php-src/Zend/tests/
H A Dbug67938.phpt20 $obj = new Test;
21 $obj->foo();
22 $obj->bar([]);
23 $obj->bar([], 1);
H A Dbug75420.13.phpt6 public function offsetExists($x): bool { $GLOBALS["obj"] = 24; return true; }
12 $obj = new Test;
14 var_dump($obj[$name] ?? 12);
15 var_dump($obj);
H A Dbug75420.14.phpt6 public function offsetExists($x): bool { $GLOBALS["obj"] = 24; return true; }
12 $obj = new Test;
14 var_dump(empty($obj[$name]));
15 var_dump($obj);
H A Dbug72813.phpt26 $obj = new Test;
27 $obj->b = $obj->b;
28 print_r($obj->getProperties());
H A Dforeach_by_ref_to_property.phpt5 $obj = new stdClass;
6 foreach ([0] as &$obj->prop) {
7 var_dump($obj->prop);
H A Dbug76752.phpt5 $obj = new stdClass;
7 $obj->prop = &$val;
8 var_dump($obj->prop ?? []);
H A Dget_mangled_object_vars.phpt16 $obj = new B;
17 $obj->dyn = 5;
18 $obj->{"6"} = 6;
20 var_export(get_mangled_object_vars($obj));
H A Ddynamic_prop_name_leak.phpt5 $obj = new stdClass;
7 $ref =& $obj->$name;
8 var_dump($obj);
/php-src/Zend/tests/weakrefs/
H A Dgh10043-001.phpt12 $obj = new Value('a');
13 $map[$obj] = $obj;
19 $obj = null;
H A Dgh10043-002.phpt12 $obj = new Value('a');
13 $map[$obj] = [$obj];
19 $obj = null;
H A Dgh10043-005.phpt12 $obj = new Value('a');
13 $value = [$obj];
14 $map[$obj] = $value;
15 $obj = null;
H A Dgh10043-004.phpt12 $obj = new Value('a');
13 $map[$obj] = [$map, $obj];
24 $obj = null;
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_fetchobject_ctor_args.phpt48 $obj = $stmt->fetchObject(Foo::class);
55 $obj = $stmt->fetchObject(Foo::class, []);
61 $obj = $stmt->fetchObject(Foo::class, ["a" => 123]);
62 var_dump($obj);
65 $obj = $stmt->fetchObject(Bar::class);
66 var_dump($obj);
69 $obj = $stmt->fetchObject(Bar::class, []);
70 var_dump($obj);
74 $obj = $stmt->fetchObject(Bar::class, ["a" => 123]);
/php-src/ext/opcache/tests/opt/
H A Ddce_012.phpt8 $obj = $a = $a;
9 $obj = new stdClass;
10 $obj->orop1 = 'abc';
17 $obj->prop1 = null;
H A Dsccp_035.phpt10 $obj = new stdClass;
11 $obj->$b = ~$b = $a='';
12 $obj->$a--;
/php-src/ext/json/tests/
H A Dserialize.phpt49 'obj' => new StdClass,
65 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
67 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
69 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}
71 {"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}
77 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
79 {"data":{"str":"foo","int":1,"float":2.3,"bool":false,"nil":null,"arr":[1,2,3],"obj":{}}}
/php-src/ext/standard/tests/serialize/
H A Dbug65806.phpt18 public function __construct($obj)
20 $this->_obj = $obj;
65 function check(myObjC $obj) {
67 if (!is_object($obj->attrC)) {
68 return 'failed (myObjC::attrC => ' . var_export($obj->attrC, true) . ')';
70 if (!is_object($obj->attrD)) {
71 return 'failed (myObjC::attrD => ' . var_export($obj->attrD, true) . ')';
/php-src/ext/dom/
H A Dxml_common.h32 static inline dom_object *php_dom_obj_from_obj(zend_object *obj) { in php_dom_obj_from_obj() argument
33 return (dom_object*)((char*)(obj) - XtOffsetOf(dom_object, std)); in php_dom_obj_from_obj()
55 PHP_DOM_EXPORT dom_object *php_dom_object_get_data(xmlNodePtr obj);
56 PHP_DOM_EXPORT bool php_dom_create_object(xmlNodePtr obj, zval* return_value, dom_object *domobj);
57 PHP_DOM_EXPORT xmlNodePtr dom_object_get_node(dom_object *obj);
76 #define DOM_RET_OBJ(obj, domobject) \ argument
77 php_dom_create_object(obj, return_value, domobject)
/php-src/sapi/phpdbg/
H A Dtest.php80 $obj = new testClass; variable
82 $test = $obj->a;
84 $obj->a += 2;
87 unset($obj);
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_bind_result_references.phpt104 unset($obj);
106 $obj->id = null;
107 $obj->label = null;
115 var_dump($obj->id);
122 $obj->id = null;
123 $obj->label = null;
124 $id = &$obj->id;
133 var_dump($obj->id);
139 $obj->id = null;
140 $obj->label = null;
[all …]
/php-src/ext/spl/tests/
H A Dbug31346.phpt5 $obj = new stdClass;
6 $obj->var1=1;
8 $ao = new ArrayObject($obj);

Completed in 41 milliseconds

12345678910>>...25