/php-src/tests/classes/ |
H A D | incdec_property_002.phpt | 22 $obj = new Test; 23 var_dump($obj->a); 24 $t1 = $obj->a++; 25 var_dump($obj->a);
|
H A D | incdec_property_004.phpt | 22 $obj = new Test; 23 var_dump($obj->a); 24 $t1 = ++$obj->a; 25 var_dump($obj->a);
|
H A D | tostring_004.phpt | 13 $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 D | bug65545.phpt | 5 $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 D | bug67938.phpt | 20 $obj = new Test; 21 $obj->foo(); 22 $obj->bar([]); 23 $obj->bar([], 1);
|
H A D | bug75420.13.phpt | 6 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 D | bug75420.14.phpt | 6 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 D | bug72813.phpt | 26 $obj = new Test; 27 $obj->b = $obj->b; 28 print_r($obj->getProperties());
|
H A D | foreach_by_ref_to_property.phpt | 5 $obj = new stdClass; 6 foreach ([0] as &$obj->prop) { 7 var_dump($obj->prop);
|
H A D | bug76752.phpt | 5 $obj = new stdClass; 7 $obj->prop = &$val; 8 var_dump($obj->prop ?? []);
|
H A D | get_mangled_object_vars.phpt | 16 $obj = new B; 17 $obj->dyn = 5; 18 $obj->{"6"} = 6; 20 var_export(get_mangled_object_vars($obj));
|
H A D | dynamic_prop_name_leak.phpt | 5 $obj = new stdClass; 7 $ref =& $obj->$name; 8 var_dump($obj);
|
/php-src/Zend/tests/weakrefs/ |
H A D | gh10043-001.phpt | 12 $obj = new Value('a'); 13 $map[$obj] = $obj; 19 $obj = null;
|
H A D | gh10043-002.phpt | 12 $obj = new Value('a'); 13 $map[$obj] = [$obj]; 19 $obj = null;
|
H A D | gh10043-005.phpt | 12 $obj = new Value('a'); 13 $value = [$obj]; 14 $map[$obj] = $value; 15 $obj = null;
|
H A D | gh10043-004.phpt | 12 $obj = new Value('a'); 13 $map[$obj] = [$map, $obj]; 24 $obj = null;
|
/php-src/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_fetchobject_ctor_args.phpt | 48 $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 D | dce_012.phpt | 8 $obj = $a = $a; 9 $obj = new stdClass; 10 $obj->orop1 = 'abc'; 17 $obj->prop1 = null;
|
H A D | sccp_035.phpt | 10 $obj = new stdClass; 11 $obj->$b = ~$b = $a=''; 12 $obj->$a--;
|
/php-src/ext/json/tests/ |
H A D | serialize.phpt | 49 '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 D | bug65806.phpt | 18 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 D | xml_common.h | 32 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 D | test.php | 80 $obj = new testClass; variable 82 $test = $obj->a; 84 $obj->a += 2; 87 unset($obj);
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_result_references.phpt | 104 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 D | bug31346.phpt | 5 $obj = new stdClass; 6 $obj->var1=1; 8 $ao = new ArrayObject($obj);
|