Lines Matching refs:elements

339 …ine int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, zend_long elements, int objprops)  in process_nested_data()  argument
341 while (elements-- > 0) { in process_nested_data()
411 if (elements && *(*p-1) != ';' && *(*p-1) != '}') { in process_nested_data()
457 zend_long elements; in object_common1() local
464 elements = parse_iv2((*p) + 2, p); in object_common1()
477 return elements; in object_common1()
483 static inline int object_common2(UNSERIALIZE_PARAMETER, zend_long elements) in object_common2() argument
496 if (elements >= HT_MAX_SIZE - zend_hash_num_elements(ht)) { in object_common2()
500 zend_hash_extend(ht, zend_hash_num_elements(ht) + elements, (ht->u.flags & HASH_FLAG_PACKED)); in object_common2()
501 if (!process_nested_data(UNSERIALIZE_PASSTHRU, ht, elements, 1)) { in object_common2()
1116 zend_long elements; in php_var_unserialize_internal() local
1251 elements = object_common1(UNSERIALIZE_PASSTHRU, ce); in php_var_unserialize_internal()
1253 if (elements < 0) { in php_var_unserialize_internal()
1263 return object_common2(UNSERIALIZE_PASSTHRU, elements); in php_var_unserialize_internal()
1307 zend_long elements = parse_iv(start + 2); in php_var_unserialize_internal() local
1312 if (elements < 0 || elements >= HT_MAX_SIZE) { in php_var_unserialize_internal()
1316 array_init_size(rval, elements); in php_var_unserialize_internal()
1317 if (elements) { in php_var_unserialize_internal()
1323 if (!process_nested_data(UNSERIALIZE_PASSTHRU, Z_ARRVAL_P(rval), elements, 0)) { in php_var_unserialize_internal()
1356 zend_long elements; in php_var_unserialize_internal() local
1359 elements = object_common1(UNSERIALIZE_PASSTHRU, ZEND_STANDARD_CLASS_DEF_PTR); in php_var_unserialize_internal()
1360 if (elements < 0 || elements >= HT_MAX_SIZE) { in php_var_unserialize_internal()
1363 return object_common2(UNSERIALIZE_PASSTHRU, elements); in php_var_unserialize_internal()