Home
last modified time | relevance | path

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

12345

/php-src/ext/mysqli/tests/fetch/
H A Dmysqli_fetch_all_data_types_variation.phpt18 string $engine,
28 // don't bail, engine might not support the datatype
74 $engine = get_default_db_engine();
75 func_mysqli_fetch_all($link, $engine, "TINYINT", -11, "-11", 20);
76 func_mysqli_fetch_all($link, $engine, "TINYINT", NULL, NULL, 30);
80 func_mysqli_fetch_all($link, $engine, "BOOL", 1, "1", 60);
81 func_mysqli_fetch_all($link, $engine, "BOOL", NULL, NULL, 70);
82 func_mysqli_fetch_all($link, $engine, "BOOLEAN", 0, "0", 80);
127 func_mysqli_fetch_all($link, $engine, "DATE", NULL, NULL, 430);
175 func_mysqli_fetch_all($link, $engine, "BLOB", "a", "a", 780);
[all …]
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_get_result_types.phpt99 func_mysqli_stmt_get_result($link, $engine, "i", "TINYINT", -11, 20);
100 func_mysqli_stmt_get_result($link, $engine, "i", "TINYINT", NULL, 40);
104 func_mysqli_stmt_get_result($link, $engine, "i", "BOOL", 1, 100);
105 func_mysqli_stmt_get_result($link, $engine, "i", "BOOL", NULL, 120);
106 func_mysqli_stmt_get_result($link, $engine, "i", "BOOLEAN", 0, 140);
135 func_mysqli_stmt_get_result($link, $engine, "i", "BIGINT", -1, 1780);
143 func_mysqli_stmt_get_result($link, $engine, "d", "FLOAT", NULL, 620);
158 func_mysqli_stmt_get_result($link, $engine, "s", "DATE", NULL, 880);
168 func_mysqli_stmt_get_result($link, $engine, "s", "TIME", NULL, 1020);
173 func_mysqli_stmt_get_result($link, $engine, "s", "YEAR", NULL, 1080);
[all …]
H A Dmysqli_fetch_all_oo.phpt90 // don't bail, engine might not support the datatype
159 func_mysqli_fetch_all_oo($link, $engine, "BOOL", 1, "1", 60);
160 func_mysqli_fetch_all_oo($link, $engine, "BOOL", NULL, NULL, 70);
161 func_mysqli_fetch_all_oo($link, $engine, "BOOLEAN", 0, "0", 80);
206 func_mysqli_fetch_all_oo($link, $engine, "DATE", NULL, NULL, 430);
218 func_mysqli_fetch_all_oo($link, $engine, "TIME", NULL, NULL, 500);
222 func_mysqli_fetch_all_oo($link, $engine, "YEAR", NULL, NULL, 530);
256 func_mysqli_fetch_all_oo($link, $engine, "BLOB", "a", "a", 780);
258 func_mysqli_fetch_all_oo($link, $engine, "BLOB", NULL, NULL, 790);
260 func_mysqli_fetch_all_oo($link, $engine, "TEXT", "a", "a", 800);
[all …]
H A Dmysqli_fetch_array.phpt72 // don't bail, engine might not support the datatype
133 func_mysqli_fetch_array($link, $engine, "TINYINT", -11, "-11", 20);
138 func_mysqli_fetch_array($link, $engine, "BOOL", 1, "1", 60);
139 func_mysqli_fetch_array($link, $engine, "BOOL", NULL, NULL, 70);
140 func_mysqli_fetch_array($link, $engine, "BOOLEAN", 0, "0", 80);
167 func_mysqli_fetch_array($link, $engine, "FLOAT", NULL, NULL, 300);
185 func_mysqli_fetch_array($link, $engine, "DATE", NULL, NULL, 430);
196 func_mysqli_fetch_array($link, $engine, "TIME", NULL, NULL, 500);
200 func_mysqli_fetch_array($link, $engine, "YEAR", NULL, NULL, 530);
238 func_mysqli_fetch_array($link, $engine, "TEXT", "a", "a", 800);
[all …]
H A Dmysqli_fetch_array_oo.phpt74 // don't bail, engine might not support the datatype
137 func_mysqli_fetch_array($mysqli, $engine, "TINYINT", -11, "-11", 20);
142 func_mysqli_fetch_array($mysqli, $engine, "BOOL", 1, "1", 60);
143 func_mysqli_fetch_array($mysqli, $engine, "BOOL", NULL, NULL, 70);
144 func_mysqli_fetch_array($mysqli, $engine, "BOOLEAN", 0, "0", 80);
171 func_mysqli_fetch_array($mysqli, $engine, "FLOAT", NULL, NULL, 300);
188 func_mysqli_fetch_array($mysqli, $engine, "DATE", NULL, NULL, 430);
198 func_mysqli_fetch_array($mysqli, $engine, "TIME", NULL, NULL, 500);
201 func_mysqli_fetch_array($mysqli, $engine, "YEAR", NULL, NULL, 530);
235 func_mysqli_fetch_array($mysqli, $engine, "BLOB", "a", "a", 780);
[all …]
H A Dmysqli_stmt_bind_result.phpt143 func_mysqli_stmt_bind_result($link, $engine, "i", "TINYINT", -11, 20);
144 func_mysqli_stmt_bind_result($link, $engine, "i", "TINYINT", NULL, 40);
148 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", 1, 100);
149 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", NULL, 120);
150 func_mysqli_stmt_bind_result($link, $engine, "i", "BOOLEAN", 0, 140);
179 func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT", -1, 1780);
185 func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT", NULL, 620);
202 func_mysqli_stmt_bind_result($link, $engine, "s", "DATE", NULL, 880);
212 func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", NULL, 1020);
217 func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR", NULL, 1080);
[all …]
H A Dmysqli_stmt_bind_param.phpt200 func_mysqli_stmt_bind_datatype($link, $engine, "i", "TINYINT", -11, 20);
201 func_mysqli_stmt_bind_datatype($link, $engine, "i", "TINYINT", NULL, 30);
205 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOL", 1, 60);
206 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOL", NULL, 70);
207 func_mysqli_stmt_bind_datatype($link, $engine, "i", "BOOLEAN", 0, 80);
243 func_mysqli_stmt_bind_datatype($link, $engine, "d", "FLOAT", NULL, 310);
271 func_mysqli_stmt_bind_datatype($link, $engine, "s", "DATE", NULL, 440);
281 func_mysqli_stmt_bind_datatype($link, $engine, "s", "TIME", NULL, 510);
285 func_mysqli_stmt_bind_datatype($link, $engine, "s", "YEAR", NULL, 540);
321 func_mysqli_stmt_bind_datatype($link, $engine, "b", "BLOB", "", 790);
[all …]
/php-src/ext/random/
H A Drandomizer.c37 randomizer->engine = engine->engine; in randomizer_common_init()
66 zval engine; in PHP_METHOD() local
97 php_random_algo_with_state engine = randomizer->engine; in PHP_METHOD() local
107 php_random_result r = engine.algo->generate(engine.state); in PHP_METHOD()
214 php_random_algo_with_state engine = randomizer->engine; in PHP_METHOD() local
235 php_random_algo_with_state engine = randomizer->engine; in PHP_METHOD() local
263 result = engine.algo->range(engine.state, min, max); in PHP_METHOD()
278 php_random_algo_with_state engine = randomizer->engine; in PHP_METHOD() local
298 result = engine.algo->generate(engine.state); in PHP_METHOD()
327 result = engine.algo->generate(engine.state); in PHP_METHOD()
[all …]
H A Dengine_mt19937.c255 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()
364 object_properties_load(&engine->std, Z_ARRVAL_P(t)); in PHP_METHOD()
376 if (!engine->engine.algo->unserialize(engine->engine.state, Z_ARRVAL_P(t))) { in PHP_METHOD()
393 if (engine->engine.algo->serialize) { in PHP_METHOD()
[all …]
H A Drandom.c82 const php_random_algo *algo = engine.algo; in php_random_range32()
83 void *state = engine.state; in php_random_range32()
142 void *state = engine.state; in php_random_range64()
257 zend_object_std_init(&engine->std, ce); in php_random_engine_common_init()
260 engine->engine = (php_random_algo_with_state){ in php_random_engine_common_init()
264 engine->std.handlers = handlers; in php_random_engine_common_init()
266 return engine; in php_random_engine_common_init()
273 php_random_status_free(engine->engine.state, false); in php_random_engine_common_free_object()
282 new_engine->engine.algo = old_engine->engine.algo; in php_random_engine_common_clone_object()
283 if (old_engine->engine.state) { in php_random_engine_common_clone_object()
[all …]
H A Dgammasection.c74 PHPAPI double php_random_gammasection_closed_open(php_random_algo_with_state engine, double min, do… in php_random_gammasection_closed_open() argument
83 uint64_t k = 1 + php_random_range64(engine, hi - 1); /* [1, hi] */ in php_random_gammasection_closed_open()
102 PHPAPI double php_random_gammasection_closed_closed(php_random_algo_with_state engine, double min, … in php_random_gammasection_closed_closed() argument
111 uint64_t k = php_random_range64(engine, hi); /* [0, hi] */ in php_random_gammasection_closed_closed()
134 PHPAPI double php_random_gammasection_open_closed(php_random_algo_with_state engine, double min, do… in php_random_gammasection_open_closed() argument
143 uint64_t k = php_random_range64(engine, hi - 1); /* [0, hi - 1] */ in php_random_gammasection_open_closed()
162 PHPAPI double php_random_gammasection_open_open(php_random_algo_with_state engine, double min, doub… in php_random_gammasection_open_open() argument
171 uint64_t k = 1 + php_random_range64(engine, hi - 2); /* [1, hi - 1] */ in php_random_gammasection_open_open()
H A Dengine_xoshiro256starstar.c180 php_random_algo_with_state engine = Z_RANDOM_ENGINE_P(ZEND_THIS)->engine; in PHP_METHOD() local
181 php_random_status_state_xoshiro256starstar *state = engine.state; in PHP_METHOD()
192 php_random_algo_with_state engine = Z_RANDOM_ENGINE_P(ZEND_THIS)->engine; in PHP_METHOD() local
193 php_random_status_state_xoshiro256starstar *state = engine.state; in PHP_METHOD()
204 php_random_algo_with_state engine = Z_RANDOM_ENGINE_P(ZEND_THIS)->engine; in PHP_METHOD() local
205 php_random_status_state_xoshiro256starstar *state = engine.state; in PHP_METHOD()
H A Dphp_random.h113 php_random_algo_with_state engine; member
118 php_random_algo_with_state engine; member
157 PHPAPI uint32_t php_random_range32(php_random_algo_with_state engine, uint32_t umax);
158 PHPAPI uint64_t php_random_range64(php_random_algo_with_state engine, uint64_t umax);
159 PHPAPI zend_long php_random_range(php_random_algo_with_state engine, zend_long min, zend_long max);
185 PHPAPI double php_random_gammasection_closed_open(php_random_algo_with_state engine, double min, do…
186 PHPAPI double php_random_gammasection_closed_closed(php_random_algo_with_state engine, double min, …
187 PHPAPI double php_random_gammasection_open_closed(php_random_algo_with_state engine, double min, do…
188 PHPAPI double php_random_gammasection_open_open(php_random_algo_with_state engine, double min, doub…
/php-src/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.phpt17 foreach ($engines as $engine) {
18 echo $engine::class, PHP_EOL;
21 $engine->generate();
24 $engine2 = unserialize(serialize($engine));
27 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-src/ext/random/tests/03_randomizer/
H A Dengine_unsafe_empty_string.phpt78 A random engine must return a non-empty string
79 A random engine must return a non-empty string
80 A random engine must return a non-empty string
81 A random engine must return a non-empty string
82 A random engine must return a non-empty string
83 A random engine must return a non-empty string
84 A random engine must return a non-empty string
85 A random engine must return a non-empty string
86 A random engine must return a non-empty string
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 Dcompatibility_user.phpt21 foreach ($engines as $engine) {
22 echo $engine::class, PHP_EOL;
24 $native_randomizer = new Randomizer(clone $engine);
25 $user_randomizer = new Randomizer(new TestWrapperEngine(clone $engine));

Completed in 39 milliseconds

12345