Home
last modified time | relevance | path

Searched refs:engine (Results 1 – 25 of 134) sorted by relevance

123456

/PHP-8.2/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt119 func_mysqli_stmt_get_result($link, $engine, "i", "TINYINT", -11, 20);
120 func_mysqli_stmt_get_result($link, $engine, "i", "TINYINT", NULL, 40);
124 func_mysqli_stmt_get_result($link, $engine, "i", "BOOL", 1, 100);
125 func_mysqli_stmt_get_result($link, $engine, "i", "BOOL", NULL, 120);
126 func_mysqli_stmt_get_result($link, $engine, "i", "BOOLEAN", 0, 140);
155 func_mysqli_stmt_get_result($link, $engine, "i", "BIGINT", -1, 1780);
163 func_mysqli_stmt_get_result($link, $engine, "d", "FLOAT", NULL, 620);
184 func_mysqli_stmt_get_result($link, $engine, "s", "DATE", NULL, 880);
194 func_mysqli_stmt_get_result($link, $engine, "s", "TIME", NULL, 1020);
199 func_mysqli_stmt_get_result($link, $engine, "s", "YEAR", NULL, 1080);
[all …]
H A Dmysqli_fetch_array_oo.phpt81 // don't bail, engine might not support the datatype
151 func_mysqli_fetch_array($mysqli, $engine, "BOOL", 1, "1", 60);
152 func_mysqli_fetch_array($mysqli, $engine, "BOOL", NULL, NULL, 70);
153 func_mysqli_fetch_array($mysqli, $engine, "BOOLEAN", 0, "0", 80);
180 func_mysqli_fetch_array($mysqli, $engine, "FLOAT", NULL, NULL, 300);
197 func_mysqli_fetch_array($mysqli, $engine, "DATE", NULL, NULL, 430);
207 func_mysqli_fetch_array($mysqli, $engine, "TIME", NULL, NULL, 500);
210 func_mysqli_fetch_array($mysqli, $engine, "YEAR", NULL, NULL, 530);
244 func_mysqli_fetch_array($mysqli, $engine, "BLOB", "a", "a", 780);
246 func_mysqli_fetch_array($mysqli, $engine, "BLOB", NULL, NULL, 790);
[all …]
H A Dmysqli_stmt_bind_result.phpt157 func_mysqli_stmt_bind_result($link, $engine, "i", "TINYINT", -11, 20);
158 func_mysqli_stmt_bind_result($link, $engine, "i", "TINYINT", NULL, 40);
162 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", 1, 100);
163 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", NULL, 120);
164 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOLEAN", 0, 140);
193 func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT", -1, 1780);
201 func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT", NULL, 620);
222 func_mysqli_stmt_bind_result($link, $engine, "s", "DATE", NULL, 880);
232 func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", NULL, 1020);
237 func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR", NULL, 1080);
[all …]
H A Dmysqli_fetch_all.phpt88 // don't bail, engine might not support the datatype
162 func_mysqli_fetch_all($link, $engine, "BOOL", 1, "1", 60);
163 func_mysqli_fetch_all($link, $engine, "BOOL", NULL, NULL, 70);
164 func_mysqli_fetch_all($link, $engine, "BOOLEAN", 0, "0", 80);
209 func_mysqli_fetch_all($link, $engine, "DATE", NULL, NULL, 430);
219 func_mysqli_fetch_all($link, $engine, "TIME", NULL, NULL, 500);
223 func_mysqli_fetch_all($link, $engine, "YEAR", NULL, NULL, 530);
257 func_mysqli_fetch_all($link, $engine, "BLOB", "a", "a", 780);
259 func_mysqli_fetch_all($link, $engine, "BLOB", NULL, NULL, 790);
261 func_mysqli_fetch_all($link, $engine, "TEXT", "a", "a", 800);
[all …]
H A Dmysqli_fetch_all_oo.phpt100 // don't bail, engine might not support the datatype
173 func_mysqli_fetch_all_oo($link, $engine, "BOOL", 1, "1", 60);
174 func_mysqli_fetch_all_oo($link, $engine, "BOOL", NULL, NULL, 70);
175 func_mysqli_fetch_all_oo($link, $engine, "BOOLEAN", 0, "0", 80);
220 func_mysqli_fetch_all_oo($link, $engine, "DATE", NULL, NULL, 430);
232 func_mysqli_fetch_all_oo($link, $engine, "TIME", NULL, NULL, 500);
236 func_mysqli_fetch_all_oo($link, $engine, "YEAR", NULL, NULL, 530);
270 func_mysqli_fetch_all_oo($link, $engine, "BLOB", "a", "a", 780);
272 func_mysqli_fetch_all_oo($link, $engine, "BLOB", NULL, NULL, 790);
274 func_mysqli_fetch_all_oo($link, $engine, "TEXT", "a", "a", 800);
[all …]
H A Dmysqli_fetch_array.phpt74 // don't bail, engine might not support the datatype
151 func_mysqli_fetch_array($link, $engine, "TINYINT", -11, "-11", 20);
156 func_mysqli_fetch_array($link, $engine, "BOOL", 1, "1", 60);
157 func_mysqli_fetch_array($link, $engine, "BOOL", NULL, NULL, 70);
158 func_mysqli_fetch_array($link, $engine, "BOOLEAN", 0, "0", 80);
185 func_mysqli_fetch_array($link, $engine, "FLOAT", NULL, NULL, 300);
203 func_mysqli_fetch_array($link, $engine, "DATE", NULL, NULL, 430);
214 func_mysqli_fetch_array($link, $engine, "TIME", NULL, NULL, 500);
218 func_mysqli_fetch_array($link, $engine, "YEAR", NULL, NULL, 530);
256 func_mysqli_fetch_array($link, $engine, "TEXT", "a", "a", 800);
[all …]
H A Dmysqli_stmt_bind_param.phpt202 func_mysqli_stmt_bind_datatype($link, $engine, "i", "TINYINT", -11, 20);
203 func_mysqli_stmt_bind_datatype($link, $engine, "i", "TINYINT", NULL, 30);
207 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOL", 1, 60);
208 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOL", NULL, 70);
209 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOLEAN", 0, 80);
245 func_mysqli_stmt_bind_datatype($link, $engine, "d", "FLOAT", NULL, 310);
273 func_mysqli_stmt_bind_datatype($link, $engine, "s", "DATE", NULL, 440);
283 func_mysqli_stmt_bind_datatype($link, $engine, "s", "TIME", NULL, 510);
287 func_mysqli_stmt_bind_datatype($link, $engine, "s", "YEAR", NULL, 540);
323 func_mysqli_stmt_bind_datatype($link, $engine, "b", "BLOB", "", 790);
[all …]
/PHP-8.2/ext/random/
H A Dengine_mt19937.c282 engine->algo->seed(engine->status, seed); in PHP_METHOD()
296 generated = engine->algo->generate(engine->status); in PHP_METHOD()
297 size = engine->status->last_generated_size; in PHP_METHOD()
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()
362 object_properties_load(&engine->std, Z_ARRVAL_P(t)); in PHP_METHOD()
374 if (!engine->algo->unserialize(engine->status, Z_ARRVAL_P(t))) { in PHP_METHOD()
389 if (!engine->std.properties) { in PHP_METHOD()
390 rebuild_object_properties(&engine->std); in PHP_METHOD()
394 if (engine->algo->serialize) { in PHP_METHOD()
[all …]
H A Dengine_xoshiro256starstar.c177 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
178 php_random_status_state_xoshiro256starstar *state = engine->status->state; in PHP_METHOD()
189 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
190 php_random_status_state_xoshiro256starstar *state = engine->status->state; in PHP_METHOD()
201 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
202 php_random_status_state_xoshiro256starstar *state = engine->status->state; in PHP_METHOD()
238 seed256(engine->status, t[0], t[1], t[2], t[3]); in PHP_METHOD()
244 engine->algo->seed(engine->status, (uint64_t) int_seed); in PHP_METHOD()
H A Dengine_pcgoneseq128xslrr64.c141 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
142 php_random_status_state_pcgoneseq128xslrr64 *state = engine->status->state; in PHP_METHOD()
170 seed128(engine->status, php_random_uint128_constant(t[0], t[1])); in PHP_METHOD()
176 engine->algo->seed(engine->status, int_seed); in PHP_METHOD()
185 php_random_engine *engine = Z_RANDOM_ENGINE_P(ZEND_THIS); in PHP_METHOD() local
186 php_random_status_state_pcgoneseq128xslrr64 *state = engine->status->state; in PHP_METHOD()
H A Drandomizer.c32 php_random_engine *engine = php_random_engine_from_obj(engine_object); in randomizer_common_init() local
35 randomizer->algo = engine->algo; in randomizer_common_init()
36 randomizer->status = engine->status; in randomizer_common_init()
64 zval engine; in PHP_METHOD() local
73 ZVAL_COPY(&engine, param_engine); in PHP_METHOD()
76 object_init_ex(&engine, random_ce_Random_Engine_Secure); in PHP_METHOD()
79 …ate_property(random_ce_Random_Randomizer, Z_OBJ_P(ZEND_THIS), "engine", strlen("engine"), &engine); in PHP_METHOD()
81 OBJ_RELEASE(Z_OBJ_P(&engine)); in PHP_METHOD()
87 randomizer_common_init(randomizer, Z_OBJ_P(&engine)); in PHP_METHOD()
/PHP-8.2/ext/random/tests/02_engine/
H A Dxoshiro256starstar_value.phpt8 $engine = new Xoshiro256StarStar(1234);
11 $engine->generate();
14 $engine->jump();
15 $engine->jumpLong();
17 var_dump(bin2hex($engine->generate()));
H A Dxoshiro256starstar_seed.phpt9 $engine = new Xoshiro256StarStar(random_int(PHP_INT_MIN, PHP_INT_MAX));
13 $engine = new Xoshiro256StarStar(random_bytes(32));
18 $engine = new Xoshiro256StarStar(1.0);
26 $engine = new Xoshiro256StarStar('foobar');
34 $engine = new Xoshiro256StarStar(str_repeat("\x00", 32));
41 $engine = new Xoshiro256StarStar(str_repeat("\x01\x02\x03\x04\x05\x06\x07\x08", 4));
43 var_dump($engine);
46 $engine->generate();
49 var_dump(bin2hex($engine->generate()));
H A Dpcgoneseq128xslrr64_seed.phpt9 $engine = new PcgOneseq128XslRr64(random_int(PHP_INT_MIN, PHP_INT_MAX));
13 $engine = new PcgOneseq128XslRr64(random_bytes(16));
18 $engine = new PcgOneseq128XslRr64(1.0);
26 $engine = new PcgOneseq128XslRr64('foobar');
33 $engine = new PcgOneseq128XslRr64(str_repeat("\x01\x02\x03\x04\x05\x06\x07\x08", 2));
35 var_dump($engine);
38 $engine->generate();
41 var_dump(bin2hex($engine->generate()));
H A Dpcgoneseq128xslrr64_value.phpt8 $engine = new PcgOneseq128XslRr64(1234);
11 $engine->generate();
14 $engine->jump(1234567);
16 var_dump(bin2hex($engine->generate()));
H A Dall_serialize_native.phpt15 foreach ($engines as $engine) {
16 echo $engine::class, PHP_EOL;
19 $engine->generate();
22 $engine2 = unserialize(serialize($engine));
25 if ($engine->generate() !== $engine2->generate()) {
H A Dall_serialize_user.phpt25 foreach ($engines as $engine) {
26 echo $engine::class, PHP_EOL;
29 $engine->generate();
32 $engine2 = unserialize(serialize($engine));
35 if ($engine->generate() !== $engine2->generate()) {
H A Dmt19937_value.phpt8 $engine = new Mt19937(1234);
11 $engine->generate();
14 var_dump(bin2hex($engine->generate()));
H A Duser_compatibility.phpt19 foreach ($engines as $engine) {
20 echo $engine::class, PHP_EOL;
22 $native_engine = clone $engine;
23 $user_engine = new TestWrapperEngine(clone $engine);
H A Dpcgoneseq128xslrr64_jump_error.phpt8 $engine = new PcgOneseq128XslRr64(1234);
12 $engine->jump(-1);
18 if ($engine->generate() !== $referenceEngine->generate()) {
/PHP-8.2/ext/random/tests/03_randomizer/
H A Dconstruct_twice.phpt2 Random: Randomizer: Calling __construct() fails due to readonly $engine property
41 var_dump($randomizer->engine::class);
47 Cannot modify readonly property Random\Randomizer::$engine
48 Cannot modify readonly property Random\Randomizer::$engine
49 Cannot modify readonly property Random\Randomizer::$engine
50 Cannot modify readonly property Random\Randomizer::$engine
H A Dengine_unsafe_empty_string.phpt66 A random engine must return a non-empty string
67 A random engine must return a non-empty string
68 A random engine must return a non-empty string
69 A random engine must return a non-empty string
70 A random engine must return a non-empty string
71 A random engine must return a non-empty string
72 A random engine must return a non-empty string
H A Dcompatibility_user.phpt20 foreach ($engines as $engine) {
21 echo $engine::class, PHP_EOL;
23 $native_randomizer = new Randomizer(clone $engine);
24 $user_randomizer = new Randomizer(new TestWrapperEngine(clone $engine));
H A Dserialize.phpt22 foreach ($engines as $engine) {
23 echo $engine::class, PHP_EOL;
25 $randomizer = new Randomizer($engine);
35 $className = $engine::class;
H A Dreadonly.phpt2 Random: Randomizer: The engine property must be readonly
14 $randomizer->engine = new Xoshiro256StarStar(1234);
29 Cannot modify readonly property Random\Randomizer::$engine

Completed in 45 milliseconds

123456