Lines Matching refs:engine
251 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
252 php_random_status_state_mt19937 *state = engine->status->state; in PHP_METHOD()
282 engine->algo->seed(engine->status, seed); in PHP_METHOD()
289 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
296 generated = engine->algo->generate(engine->status); in PHP_METHOD()
297 size = engine->status->last_generated_size; in PHP_METHOD()
317 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
325 ZVAL_ARR(&t, zend_std_get_properties(&engine->std)); in PHP_METHOD()
331 if (!engine->algo->serialize(engine->status, Z_ARRVAL(t))) { in PHP_METHOD()
342 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
352 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
359 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
362 object_properties_load(&engine->std, Z_ARRVAL_P(t)); in PHP_METHOD()
364 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
371 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
374 if (!engine->algo->unserialize(engine->status, Z_ARRVAL_P(t))) { in PHP_METHOD()
375 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
384 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
389 if (!engine->std.properties) { in PHP_METHOD()
390 rebuild_object_properties(&engine->std); in PHP_METHOD()
392 ZVAL_ARR(return_value, zend_array_dup(engine->std.properties)); in PHP_METHOD()
394 if (engine->algo->serialize) { in PHP_METHOD()
396 if (!engine->algo->serialize(engine->status, Z_ARRVAL(t))) { in PHP_METHOD()