/php-src/Zend/ |
H A D | zend_objects_API.h | 45 #define OBJ_RELEASE(obj) zend_object_release(obj) argument 69 GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); in zend_object_store_ctor_failed() 76 if (GC_DELREF(obj) == 0) { in END_EXTERN_C() 77 zend_objects_store_del(obj); in END_EXTERN_C() 78 } else if (UNEXPECTED(GC_MAY_LEAK((zend_refcounted*)obj))) { in END_EXTERN_C() 79 gc_possible_root((zend_refcounted*)obj); in END_EXTERN_C() 94 void *obj = emalloc(obj_size + zend_object_properties_size(ce)); in zend_object_alloc() local 95 memset(obj, 0, obj_size - sizeof(zend_object)); in zend_object_alloc() 96 return obj; in zend_object_alloc() 101 zend_property_info **table = obj->ce->properties_info_table; in zend_get_property_info_for_slot() [all …]
|
/php-src/Zend/tests/weakrefs/ |
H A D | weakmap_weakness.phpt | 12 $obj = new stdClass; 13 $map[$obj] = 2; 16 unset($obj); 28 unset($obj); 34 $map[$obj] = 3; 36 var_dump($obj); 41 $obj->obj = $obj; 42 $map[$obj] = 4; 43 unset($obj); 51 $map[$obj] = $obj; [all …]
|
H A D | weakmap_basic_map_behavior.phpt | 9 $obj = new stdClass; 10 $obj->value = 1; 14 $map[$obj] = $obj2; 19 var_dump($map[$obj]); 21 $map[$obj] = 42; 25 var_dump($map[$obj]); 27 $map[$obj] = false; 33 $map[$obj] = null; 39 unset($map[$obj]); 53 $map[$obj] = []; [all …]
|
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-src/ext/pdo_sqlite/tests/subclasses/ |
H A D | gc.phpt | 14 $obj = new Obj; 15 $obj->a = Pdo::connect('sqlite::memory:'); 17 if (!$obj->a instanceof PdoSqlite) { 18 echo "Wrong class type. Should be PdoSqlite but is " . get_class($obj->a) . "]\n"; 21 $obj->a->createFunction('func1', function() use ($obj) {}, 1); 22 $obj->a->createAggregate('func2', function() use ($obj) {}, function() use($obj) {}); 23 $obj->a->createCollation('col', function() use ($obj) {});
|
/php-src/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;
|
/php-src/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-src/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-src/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-src/ext/dom/ |
H A D | documenttype.c | 32 zend_result dom_documenttype_name_read(dom_object *obj, zval *retval) in dom_documenttype_name_read() argument 34 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_name_read() 46 zend_result dom_documenttype_entities_read(dom_object *obj, zval *retval) in dom_documenttype_entities_read() argument 48 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_entities_read() 67 zend_result dom_documenttype_notations_read(dom_object *obj, zval *retval) in dom_documenttype_notations_read() argument 69 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_notations_read() 88 zend_result dom_documenttype_public_id_read(dom_object *obj, zval *retval) in dom_documenttype_public_id_read() argument 90 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_public_id_read() 108 zend_result dom_documenttype_system_id_read(dom_object *obj, zval *retval) in dom_documenttype_system_id_read() argument 110 DOM_PROP_NODE(xmlDtdPtr, dtdptr, obj); in dom_documenttype_system_id_read() [all …]
|
H A D | entity.c | 40 zend_result dom_entity_public_id_read(dom_object *obj, zval *retval) in dom_entity_public_id_read() argument 42 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_public_id_read() 60 zend_result dom_entity_system_id_read(dom_object *obj, zval *retval) in dom_entity_system_id_read() argument 62 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_system_id_read() 80 zend_result dom_entity_notation_name_read(dom_object *obj, zval *retval) in dom_entity_notation_name_read() argument 82 DOM_PROP_NODE(xmlEntityPtr, nodep, obj); in dom_entity_notation_name_read() 105 zend_result dom_entity_actual_encoding_read(dom_object *obj, zval *retval) in dom_entity_actual_encoding_read() argument 118 zend_result dom_entity_encoding_read(dom_object *obj, zval *retval) in dom_entity_encoding_read() argument 131 zend_result dom_entity_version_read(dom_object *obj, zval *retval) in dom_entity_version_read() argument
|
/php-src/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-src/ext/tidy/ |
H A D | tidy.c | 521 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_node_cast_handler() 578 tidyNodeGetText(obj->ptdoc->doc, obj->node, &buf); in tidy_add_node_default_properties() 582 &obj->std, in tidy_add_node_default_properties() 595 &obj->std, in tidy_add_node_default_properties() 603 &obj->std, in tidy_add_node_default_properties() 611 &obj->std, in tidy_add_node_default_properties() 619 &obj->std, in tidy_add_node_default_properties() 627 &obj->std, in tidy_add_node_default_properties() 630 tidyNodeIsProp(obj->ptdoc->doc, obj->node) in tidy_add_node_default_properties() 1036 if (obj->ptdoc->errbuf && obj->ptdoc->errbuf->bp) { in PHP_FUNCTION() [all …]
|
/php-src/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-src/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-src/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-src/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-src/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-src/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 …]
|