/PHP-8.3/ext/spl/tests/ |
H A D | bug81992.phpt | 7 global $obj; 8 var_dump($obj[0]); 10 var_dump($obj[2]); 15 var_dump($obj[4]); 22 $obj = new SplFixedArray(5); 23 $obj[0] = str_repeat("A", 10); 24 $obj[2] = str_repeat('B', 10); 25 $obj[3] = new InvalidDestructor(); 26 $obj[4] = str_repeat('C', 10); 27 $obj->setSize(2);
|
H A D | dllist_008.phpt | 5 $obj = new SplDoublyLinkedList(); 6 $obj[] = 1; 7 $obj[] = 2; 8 var_dump(count($obj)); 14 $obj = new SplDoublyLinkedList2(); 15 $obj[] = 1; 16 $obj[] = 2; 17 var_dump(count($obj));
|
H A D | heap_010.phpt | 5 $obj = new SplMaxHeap(); 6 $obj->insert(1); 7 $obj->insert(2); 8 var_dump(count($obj)); 14 $obj = new SplMaxHeap2(); 15 $obj->insert(1); 16 $obj->insert(2); 17 var_dump(count($obj));
|
H A D | bug53362.phpt | 6 class obj extends SplFixedArray{ 12 $obj = new obj; 14 $obj[]=2; 15 $obj[]=2; 16 $obj[]=2;
|
H A D | bug81992b.phpt | 8 private SplFixedArray $obj, 13 $this->obj->setSize($this->desiredSize); 14 echo "Destroyed, size is now still ", $this->obj->getSize(), "\n"; 27 $obj = new SplFixedArray(5); 28 $obj[0] = str_repeat("A", 10); 29 $obj[1] = new DestructorLogger(1); 30 $obj[2] = str_repeat('B', 10); 31 $obj[3] = new InvalidDestructor($desiredSize, $obj); 32 $obj[4] = new DestructorLogger(4); 33 $obj->setSize(2); [all …]
|
/PHP-8.3/ext/pdo_sqlite/tests/ |
H A D | gc.phpt | 13 $obj = new Obj; 14 $obj->a = new PDO('sqlite::memory:'); 15 $obj->a->sqliteCreateFunction('func1', function() use ($obj) {}, 1); 16 $obj->a->sqliteCreateAggregate('func2', function() use ($obj) {}, function() use($obj) {}); 17 $obj->a->sqliteCreateCollation('col', function() use ($obj) {});
|
/PHP-8.3/ext/mysqli/tests/ |
H A D | mysqli_fetch_object.phpt | 16 $obj = mysqli_fetch_object($res); 17 if (($obj->ID !== "1") || ($obj->label !== "a") || (get_class($obj) != 'stdClass')) { 19 var_dump($obj); 34 …if (($obj->ID !== "2") || ($obj->label !== "b") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge… 36 var_dump($obj); 52 …if (($obj->ID !== "3") || ($obj->label !== "c") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge… 54 var_dump($obj); 62 …if (($obj->ID !== "4") || ($obj->label !== "d") || ($obj->a !== 'a') || ($obj->b !== NULL) || (get… 64 var_dump($obj); 71 …if (($obj->ID !== "5") || ($obj->label !== "e") || ($obj->a !== 'a') || ($obj->b !== 'b') || (get_… [all …]
|
H A D | mysqli_fetch_object_oo.phpt | 33 $obj = mysqli_fetch_object($res); 34 if (($obj->ID !== "1") || ($obj->label !== "a") || (get_class($obj) != 'stdClass')) { 36 var_dump($obj); 50 $obj = $res->fetch_object('mysqli_fetch_object_test'); 51 …if (($obj->ID !== "2") || ($obj->label !== "b") || ($obj->a !== NULL) || ($obj->b !== NULL) || (ge… 53 var_dump($obj); 73 $obj = $res->fetch_object('mysqli_fetch_object_construct', array('a')); 74 …if (($obj->ID !== "4") || ($obj->label !== "d") || ($obj->a !== 'a') || ($obj->b !== NULL) || (get… 76 var_dump($obj); 83 …if (($obj->ID !== "5") || ($obj->label !== "e") || ($obj->a !== 'a') || ($obj->b !== 'b') || (get_… [all …]
|
/PHP-8.3/Zend/tests/type_declarations/ |
H A D | typed_properties_067.phpt | 6 $obj = new class { 14 arr($obj->it); 15 var_dump($obj->it); 16 array_shift($obj->it); 17 var_dump($obj->it); 18 parse_str("foo=bar", $obj->it); 19 var_dump($obj->it); 20 $obj->it = []; 21 var_dump($obj->it);
|
H A D | typed_properties_095.phpt | 11 $obj = new _ZendTestClass; 12 var_dump($obj->intProp); 14 $obj->intProp = "foobar"; 18 $obj->intProp = 456; 21 $obj->classProp = $obj; 26 var_dump($obj); 33 $obj = new Test; 34 var_dump($obj->intProp); 40 $obj->intProp = 456; 43 $obj->classProp = $obj; [all …]
|
/PHP-8.3/Zend/tests/ |
H A D | object_property_ref_incdec.phpt | 6 $obj = new stdClass; 7 $obj->cursor = 0; 8 $ref =& $obj->cursor; 10 $obj->cursor++; 11 var_dump($obj->cursor); 13 $obj->cursor--; 14 var_dump($obj->cursor);
|
/PHP-8.3/Zend/tests/weakrefs/ |
H A D | weakmap_multiple_weakrefs.phpt | 6 $obj = new stdClass; 8 $ref = WeakReference::create($obj); 10 $map[$obj] = 1; 12 $map2[$obj] = 1; 17 unset($obj); 21 $obj = new stdClass; 22 $ref = WeakReference::create($obj); 24 $map[$obj] = 1; 26 $map2[$obj] = 1; 30 var_dump($obj); [all …]
|
/PHP-8.3/ext/tidy/ |
H A D | tidy.c | 526 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_node_cast_handler() 583 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_add_node_default_properties() 587 &obj->std, in tidy_add_node_default_properties() 600 &obj->std, in tidy_add_node_default_properties() 608 &obj->std, in tidy_add_node_default_properties() 616 &obj->std, in tidy_add_node_default_properties() 624 &obj->std, in tidy_add_node_default_properties() 632 &obj->std, in tidy_add_node_default_properties() 635 tidyNodeIsProp(obj->ptdoc->doc, obj->node) in tidy_add_node_default_properties() 1040 if (obj->ptdoc->errbuf && obj->ptdoc->errbuf->bp) { in PHP_FUNCTION() [all …]
|
/PHP-8.3/ext/json/tests/ |
H A D | json_encode_pretty_print2.phpt | 22 $obj = new MyClass(); 23 $obj->dynamic = new MyClass(null, []); 24 echo json_encode($obj), "\n"; 25 echo json_encode($obj, JSON_PRETTY_PRINT), "\n"; 26 $obj = new MyClass(); 27 unset($obj->y); 28 echo json_encode($obj), "\n"; 29 echo json_encode($obj, JSON_PRETTY_PRINT), "\n"; 30 unset($obj->x); 31 echo json_encode($obj), "\n"; [all …]
|
/PHP-8.3/ext/com_dotnet/ |
H A D | com_com.c | 34 php_com_dotnet_object *obj; in PHP_METHOD() local 62 obj = CDNO_FETCH(object); in PHP_METHOD() 69 obj->code_page = (int)cp; in PHP_METHOD() 283 IDispatch *obj = NULL; in PHP_FUNCTION() local 313 } else if (obj) { in PHP_FUNCTION() 320 if (obj) { in PHP_FUNCTION() 321 IDispatch_Release(obj); in PHP_FUNCTION() 324 IUnknown_Release(obj); in PHP_FUNCTION() 424 if (obj->typeinfo) { in php_com_get_id_of_name() 432 obj->typeinfo = NULL; in php_com_get_id_of_name() [all …]
|
H A D | com_variant.c | 461 php_com_variant_from_zval_ex(&obj->v, zvalue, obj->code_page, vt); in PHP_METHOD() 482 res = VariantChangeType(&obj->v, &obj->v, 0, (VARTYPE)vt); in PHP_METHOD() 497 if (V_VT(&obj->v) != VT_DISPATCH && obj->typeinfo) { in PHP_METHOD() 530 php_com_variant_from_zval(&obj->v, zvalue, obj->code_page); in PHP_FUNCTION() 564 vleft = &obj->v; in variant_binary_operation() 571 vleft = &obj->v; in variant_binary_operation() 757 vleft = &obj->v; in variant_unary_operation() 849 vleft = &obj->v; in PHP_FUNCTION() 887 vleft = &obj->v; in PHP_FUNCTION() 894 vleft = &obj->v; in PHP_FUNCTION() [all …]
|
/PHP-8.3/ext/zend_test/ |
H A D | object_handlers.c | 27 object_properties_init(obj, ce); in donc_object_create_ex() 28 obj->handlers = &donc_object_handlers; in donc_object_create_ex() 29 ZVAL_LONG(OBJ_PROP_NUM(obj, 0), l); in donc_object_create_ex() 30 return obj; in donc_object_create_ex() 130 object_properties_init(obj, ce); in long_castable_no_operation_object_create_ex() 132 ZVAL_LONG(OBJ_PROP_NUM(obj, 0), l); in long_castable_no_operation_object_create_ex() 133 return obj; in long_castable_no_operation_object_create_ex() 166 object_properties_init(obj, ce); in float_castable_no_operation_object_create_ex() 169 return obj; in float_castable_no_operation_object_create_ex() 202 object_properties_init(obj, ce); in numeric_castable_no_operation_object_create_ex() [all …]
|
/PHP-8.3/ext/mysqli/ |
H A D | mysqli_warning.c | 130 mysqli_object *obj = Z_MYSQLI_P(ZEND_THIS); in PHP_METHOD() local 136 if (obj->ptr) { in PHP_METHOD() 141 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD() 150 static int mysqli_warning_message(mysqli_object *obj, zval *retval, bool quiet) in mysqli_warning_message() argument 154 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message() 162 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message() 174 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate() 182 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate() 190 static int mysqli_warning_errno(mysqli_object *obj, zval *retval, bool quiet) in mysqli_warning_errno() argument 194 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno() [all …]
|
/PHP-8.3/ext/dom/ |
H A D | entity.c | 39 int dom_entity_public_id_read(dom_object *obj, zval *retval) in dom_entity_public_id_read() argument 41 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_public_id_read() 64 int dom_entity_system_id_read(dom_object *obj, zval *retval) in dom_entity_system_id_read() argument 66 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_system_id_read() 89 int dom_entity_notation_name_read(dom_object *obj, zval *retval) in dom_entity_notation_name_read() argument 91 xmlEntity *nodep = (xmlEntity *) dom_object_get_node(obj); in dom_entity_notation_name_read() 119 int dom_entity_actual_encoding_read(dom_object *obj, zval *retval) in dom_entity_actual_encoding_read() argument 132 int dom_entity_encoding_read(dom_object *obj, zval *retval) in dom_entity_encoding_read() argument 145 int dom_entity_version_read(dom_object *obj, zval *retval) in dom_entity_version_read() argument
|
H A D | documenttype.c | 31 int dom_documenttype_name_read(dom_object *obj, zval *retval) in dom_documenttype_name_read() argument 33 xmlDtdPtr dtdptr = (xmlDtdPtr) dom_object_get_node(obj); in dom_documenttype_name_read() 52 int dom_documenttype_entities_read(dom_object *obj, zval *retval) in dom_documenttype_entities_read() argument 54 xmlDtdPtr doctypep = (xmlDtdPtr) dom_object_get_node(obj); in dom_documenttype_entities_read() 80 int dom_documenttype_notations_read(dom_object *obj, zval *retval) in dom_documenttype_notations_read() argument 82 xmlDtdPtr doctypep = (xmlDtdPtr) dom_object_get_node(obj); in dom_documenttype_notations_read() 108 int dom_documenttype_public_id_read(dom_object *obj, zval *retval) in dom_documenttype_public_id_read() argument 110 xmlDtdPtr dtdptr = (xmlDtdPtr) dom_object_get_node(obj); in dom_documenttype_public_id_read() 133 int dom_documenttype_system_id_read(dom_object *obj, zval *retval) in dom_documenttype_system_id_read() argument 135 xmlDtdPtr dtdptr = (xmlDtdPtr) dom_object_get_node(obj); in dom_documenttype_system_id_read() [all …]
|
/PHP-8.3/Zend/tests/type_declarations/union_types/ |
H A D | inheritance_internal.phpt | 10 $obj = new _ZendTestChildClass; 11 $obj->classUnionProp = new stdClass; 12 $obj->classUnionProp = new ArrayIterator; 14 $obj->classUnionProp = new DateTime; 19 $obj = new C; 20 $obj->classUnionProp = new stdClass; 21 $obj->classUnionProp = new ArrayIterator; 23 $obj->classUnionProp = new DateTime;
|
/PHP-8.3/ext/opcache/tests/opt/ |
H A D | nullsafe_001.phpt | 20 function test2(object $obj) { 22 var_dump($obj?->foo); 23 var_dump(isset($obj?->foo)); 24 var_dump(empty($obj?->foo)); 54 0000 CV0($obj) = RECV 1 56 0002 T1 = JMP_NULL CV0($obj) 0004 57 0003 T1 = FETCH_OBJ_R CV0($obj) string("foo") 61 0007 T1 = JMP_NULL CV0($obj) 0009 62 0008 T1 = ISSET_ISEMPTY_PROP_OBJ (isset) CV0($obj) string("foo") 66 0012 T1 = JMP_NULL CV0($obj) 0014 [all …]
|
/PHP-8.3/ext/reflection/tests/ |
H A D | ReflectionClass_isCloneable_002.phpt | 8 $obj = new ReflectionClass('foo'); 9 var_dump($obj->isCloneable()); 13 $obj = new ReflectionClass('bar'); 14 var_dump($obj->isCloneable()); 18 $obj = new ReflectionClass('baz'); 19 var_dump($obj->isCloneable());
|
/PHP-8.3/tests/lang/ |
H A D | foreachLoopObjects.003.phpt | 16 $obj = new C; 21 var_dump($obj); 24 $obj = new C; 28 var_dump($obj); 32 $obj = new C; 36 var_dump($obj); 39 $obj = new C; 50 var_dump($obj); 53 $obj = new C; 67 $obj = new C; [all …]
|
H A D | bug24499.phpt | 8 public function tester($obj) 10 $obj->id = "bar"; 15 $obj = new stdClass; 16 $obj->foo = "bar"; 17 $id->tester($obj); 18 print_r($obj);
|