Lines Matching refs:t
171 zval t; in serialize() local
174 ZVAL_STR(&t, php_random_bin2hex_le(&s->state[i], sizeof(uint32_t))); in serialize()
175 zend_hash_next_index_insert(data, &t); in serialize()
177 ZVAL_LONG(&t, s->count); in serialize()
178 zend_hash_next_index_insert(data, &t); in serialize()
179 ZVAL_LONG(&t, s->mode); in serialize()
180 zend_hash_next_index_insert(data, &t); in serialize()
188 zval *t; in unserialize() local
196 t = zend_hash_index_find(data, i); in unserialize()
197 if (!t || Z_TYPE_P(t) != IS_STRING || Z_STRLEN_P(t) != (2 * sizeof(uint32_t))) { in unserialize()
200 if (!php_random_hex2bin_le(Z_STR_P(t), &s->state[i])) { in unserialize()
204 t = zend_hash_index_find(data, MT_N); in unserialize()
205 if (!t || Z_TYPE_P(t) != IS_LONG) { in unserialize()
208 s->count = Z_LVAL_P(t); in unserialize()
213 t = zend_hash_index_find(data, MT_N + 1); in unserialize()
214 if (!t || Z_TYPE_P(t) != IS_LONG) { in unserialize()
217 s->mode = Z_LVAL_P(t); in unserialize()
318 zval t; in PHP_METHOD() local
325 ZVAL_ARR(&t, zend_std_get_properties(&engine->std)); in PHP_METHOD()
326 Z_TRY_ADDREF(t); in PHP_METHOD()
327 zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &t); in PHP_METHOD()
330 array_init(&t); in PHP_METHOD()
331 if (!engine->algo->serialize(engine->status, Z_ARRVAL(t))) { in PHP_METHOD()
335 zend_hash_next_index_insert(Z_ARRVAL_P(return_value), &t); in PHP_METHOD()
344 zval *t; in PHP_METHOD() local
357 t = zend_hash_index_find(d, 0); in PHP_METHOD()
358 if (!t || Z_TYPE_P(t) != IS_ARRAY) { in PHP_METHOD()
362 object_properties_load(&engine->std, Z_ARRVAL_P(t)); in PHP_METHOD()
369 t = zend_hash_index_find(d, 1); in PHP_METHOD()
370 if (!t || Z_TYPE_P(t) != IS_ARRAY) { in PHP_METHOD()
374 if (!engine->algo->unserialize(engine->status, Z_ARRVAL_P(t))) { in PHP_METHOD()
385 zval t; in PHP_METHOD() local
395 array_init(&t); in PHP_METHOD()
396 if (!engine->algo->serialize(engine->status, Z_ARRVAL(t))) { in PHP_METHOD()
400 zend_hash_str_add(Z_ARR_P(return_value), "__states", strlen("__states"), &t); in PHP_METHOD()