Lines Matching refs:engine

255 	php_random_algo_with_state engine = Z_RANDOM_ENGINE_P(ZEND_THIS)->engine;  in PHP_METHOD()  local
256 php_random_status_state_mt19937 *state = engine.state; in PHP_METHOD()
294 php_random_algo_with_state engine = Z_RANDOM_ENGINE_P(ZEND_THIS)->engine; in PHP_METHOD() local
299 php_random_result generated = engine.algo->generate(engine.state); in PHP_METHOD()
319 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
327 ZVAL_ARR(&t, zend_std_get_properties(&engine->std)); in PHP_METHOD()
333 if (!engine->engine.algo->serialize(engine->engine.state, Z_ARRVAL(t))) { in PHP_METHOD()
344 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
354 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
361 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
364 object_properties_load(&engine->std, Z_ARRVAL_P(t)); in PHP_METHOD()
366 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
373 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
376 if (!engine->engine.algo->unserialize(engine->engine.state, Z_ARRVAL_P(t))) { in PHP_METHOD()
377 …zend_throw_exception_ex(NULL, 0, "Invalid serialization data for %s object", ZSTR_VAL(engine->std.… in PHP_METHOD()
386 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
391 if (!engine->std.properties) { in PHP_METHOD()
392 rebuild_object_properties(&engine->std); in PHP_METHOD()
394 ZVAL_ARR(return_value, zend_array_dup(engine->std.properties)); in PHP_METHOD()
396 if (engine->engine.algo->serialize) { in PHP_METHOD()
398 if (!engine->engine.algo->serialize(engine->engine.state, Z_ARRVAL(t))) { in PHP_METHOD()