/php-src/Zend/ |
H A D | micro_bench.php | 287 $t = end_test($t, 'empty_loop'); variable 290 $t = end_test($t, 'func()', $overhead); variable 294 $t = end_test($t, 'int_func()', $overhead); variable 312 $t = end_test($t, 'self::f()', $overhead); variable 314 $t = end_test($t, 'Foo::f()', $overhead); variable 323 $t = end_test($t, '++$this->x', $overhead); variable 325 $t = end_test($t, '--$this->x', $overhead); variable 327 $t = end_test($t, '$this->x++', $overhead); variable 329 $t = end_test($t, '$this->x--', $overhead); variable 339 $t = end_test($t, 'new Foo()', $overhead); variable [all …]
|
H A D | bench.php | 386 $t = end_test($t, "simple"); variable 388 $t = end_test($t, "simplecall"); variable 390 $t = end_test($t, "simpleucall"); variable 394 $t = end_test($t, "mandel"); variable 396 $t = end_test($t, "mandel2"); variable 400 $t = end_test($t, "ary(50000)"); variable 404 $t = end_test($t, "ary3(2000)"); variable 406 $t = end_test($t, "fibo(30)"); variable 410 $t = end_test($t, "hash2(500)"); variable 414 $t = end_test($t, "matrix(20)"); variable [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | crc32_variation4.phpt | 59 /t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t
|
H A D | crc32_variation2.phpt | 35 '\thello world\t', 54 /t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t
|
H A D | crc32_variation3.phpt | 35 "\thello world\t", 56 /t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t/t
|
H A D | trim.phpt | 9 var_dump('ABC' === trim(" \0\t\nABC \0\t\n")); 10 var_dump("ABC \0\t\n" === ltrim(" \0\t\nABC \0\t\n")); 11 var_dump(" \0\t\nABC" === rtrim(" \0\t\nABC \0\t\n")); 12 var_dump(" \0\t\nABC \0\t\n" === trim(" \0\t\nABC \0\t\n",'')); 13 var_dump(" \0\t\nABC \0\t\n" === ltrim(" \0\t\nABC \0\t\n",'')); 14 var_dump(" \0\t\nABC \0\t\n" === rtrim(" \0\t\nABC \0\t\n",''));
|
H A D | bug55674.phpt | 5 var_dump(str_getcsv("0\t\t\"2\"\n", "\t", escape: '')); 6 var_dump(str_getcsv("0\t \t'2'\n", "\t", "'", escape: '')); 8 var_dump(str_getcsv(" \t \t\t\t ", "\t", escape: ''));
|
H A D | htmlspecialchars_decode_variation7.phpt | 16 foreach ($tests as $t) { 18 if ($t == $dec) { 27 foreach ($tests as $t) { 29 if ($t == $dec) { 38 foreach ($tests as $t) { 40 if ($t == $dec) { 49 foreach ($tests as $t) { 51 if ($t == $dec) { 60 foreach ($tests as $t) { 62 if ($t == $dec) { [all …]
|
/php-src/Zend/tests/ |
H A D | bug79155.phpt | 11 $t = new Foo; 12 $t->a = "str"; 13 $t->b = "str"; 14 $t->c = new stdClass; 15 $t->d = new stdClass; 17 var_dump($t->a, $t->b, $t->c, $t->d); 19 $t->a = null; 20 $t->b = null; 21 $t->c = null; 22 $t->d = null; [all …]
|
H A D | bug69957.phpt | 10 } catch (DivisionByZeroError $t){ 12 printf("Type: %s\n", get_class($t)); 20 } catch (DivisionByZeroError $t){ 22 printf("Type: %s\n", get_class($t)); 29 } catch (DivisionByZeroError $t){ 31 printf("Type: %s\n", get_class($t)); 38 } catch (DivisionByZeroError $t){ 40 printf("Type: %s\n", get_class($t)); 47 } catch (DivisionByZeroError $t){ 49 printf("Type: %s\n", get_class($t)); [all …]
|
H A D | bug30828.phpt | 9 foreach ($bt as $t) { 10 print $t['class'].$t['type'].$t['function']."\n"; 17 foreach ($bt as $t) { 18 print $t['class'].$t['type'].$t['function']."\n"; 25 foreach ($bt as $t) { 26 print $t['class'].$t['type'].$t['function']."\n";
|
/php-src/ext/fileinfo/ |
H A D | php_libmagic.c | 23 zend_string *t; in convert_libmagic_pattern() local 41 ZSTR_VAL(t)[j++] = '~'; in convert_libmagic_pattern() local 47 ZSTR_VAL(t)[j] = '~'; in convert_libmagic_pattern() local 51 ZSTR_VAL(t)[j++] = 'x'; in convert_libmagic_pattern() local 53 ZSTR_VAL(t)[j] = '0'; in convert_libmagic_pattern() local 60 ZSTR_VAL(t)[j++] = '~'; in convert_libmagic_pattern() local 63 ZSTR_VAL(t)[j++] = 'i'; in convert_libmagic_pattern() local 66 ZSTR_VAL(t)[j++] = 'm'; in convert_libmagic_pattern() local 68 ZSTR_VAL(t)[j]='\0'; in convert_libmagic_pattern() local 69 ZSTR_LEN(t) = j; in convert_libmagic_pattern() [all …]
|
/php-src/ext/random/ |
H A D | zend_utils.c | 30 uint64_t t[4]; in php_random_bytes_insecure_for_zend() local 38 if (php_random_bytes_ex(&t, sizeof(t), errstr, sizeof(errstr)) == FAILURE) { in php_random_bytes_insecure_for_zend() 46 t[0] = php_random_generate_fallback_seed_ex(&fallback_state); in php_random_bytes_insecure_for_zend() 47 t[1] = php_random_generate_fallback_seed_ex(&fallback_state); in php_random_bytes_insecure_for_zend() 48 t[2] = php_random_generate_fallback_seed_ex(&fallback_state); in php_random_bytes_insecure_for_zend() 49 t[3] = php_random_generate_fallback_seed_ex(&fallback_state); in php_random_bytes_insecure_for_zend() 51 } while (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)); in php_random_bytes_insecure_for_zend() 53 php_random_xoshiro256starstar_seed256(&state->xoshiro256starstar_state, t[0], t[1], t[2], t[3]); in php_random_bytes_insecure_for_zend()
|
H A D | engine_xoshiro256starstar.c | 55 s->state[2] ^= t; in generate_state() 124 zval t; in serialize() local 137 zval *t; in unserialize() local 146 if (!t || Z_TYPE_P(t) != IS_STRING || Z_STRLEN_P(t) != (2 * sizeof(uint64_t))) { in unserialize() 216 uint64_t t[4]; in PHP_METHOD() local 219 if (php_random_bytes_throw(&t, sizeof(t)) == FAILURE) { in PHP_METHOD() 223 } while (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)); in PHP_METHOD() 225 php_random_xoshiro256starstar_seed256(state, t[0], t[1], t[2], t[3]); in PHP_METHOD() 234 t[i] = 0; in PHP_METHOD() 240 if (UNEXPECTED(t[0] == 0 && t[1] == 0 && t[2] == 0 && t[3] == 0)) { in PHP_METHOD() [all …]
|
H A D | engine_mt19937.c | 177 zval t; in serialize() local 194 zval *t; in unserialize() local 203 if (!t || Z_TYPE_P(t) != IS_STRING || Z_STRLEN_P(t) != (2 * sizeof(uint32_t))) { in unserialize() 211 if (!t || Z_TYPE_P(t) != IS_LONG) { in unserialize() 220 if (!t || Z_TYPE_P(t) != IS_LONG) { in unserialize() 320 zval t; in PHP_METHOD() local 332 array_init(&t); in PHP_METHOD() 346 zval *t; in PHP_METHOD() local 360 if (!t || Z_TYPE_P(t) != IS_ARRAY) { in PHP_METHOD() 372 if (!t || Z_TYPE_P(t) != IS_ARRAY) { in PHP_METHOD() [all …]
|
/php-src/ext/date/lib/ |
H A D | interval.c | 232 t->sse_uptodate = 0; in timelib_add() 239 return t; in timelib_add() 260 t->sse_uptodate = 0; in timelib_sub() 268 return t; in timelib_sub() 290 t->sse_uptodate = 0; in timelib_add_wall() 307 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall() 331 timelib_set_timezone(t, t->tz_info); in timelib_add_wall() 335 return t; in timelib_add_wall() 360 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_sub_wall() 384 timelib_set_timezone(t, t->tz_info); in timelib_sub_wall() [all …]
|
H A D | unixtime2tm.c | 165 if (t->tz_abbr) { in timelib_set_timezone_from_offset() 168 t->tz_abbr = NULL; in timelib_set_timezone_from_offset() 171 t->have_zone = 1; in timelib_set_timezone_from_offset() 173 t->dst = 0; in timelib_set_timezone_from_offset() 179 if (t->tz_abbr) { in timelib_set_timezone_from_abbr() 185 t->have_zone = 1; in timelib_set_timezone_from_abbr() 204 t->tz_info = tz; in timelib_set_timezone() 205 if (t->tz_abbr) { in timelib_set_timezone() 211 t->have_zone = 1; in timelib_set_timezone() 230 timelib_unixtime2local(t, t->sse); in timelib_apply_localtime() [all …]
|
/php-src/ext/standard/tests/serialize/ |
H A D | sleep_uninitialized_typed_prop.phpt | 20 $t = new Test; 21 var_dump(serialize($t)); 22 var_dump(unserialize(serialize($t)) == $t); 24 $t->x = 1; 25 var_dump(unserialize(serialize($t)) == $t); 27 $t->y = 2; 28 var_dump(unserialize(serialize($t)) == $t); 30 $t->z = 3; 31 var_dump(unserialize(serialize($t)) == $t); 33 var_dump($t);
|
/php-src/tests/classes/ |
H A D | interface_doubled.phpt | 45 $t = new class_a(); 46 echo $t->test('if_a'); 47 echo $t->test('if_b'); 48 echo $t->test('if_c'); 49 echo $t->test('if_d'); 62 $t = new class_b(); 79 $t = new class_c(); 96 $t = new class_d(); 113 $t = new class_e(); 130 $t = new class_f(); [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | cdf_time.c | 110 t /= CDF_TIME_PREC; in cdf_timestamp_to_timespec() 111 tm.tm_sec = CAST(int, t % 60); in cdf_timestamp_to_timespec() 112 t /= 60; in cdf_timestamp_to_timespec() 114 tm.tm_min = CAST(int, t % 60); in cdf_timestamp_to_timespec() 115 t /= 60; in cdf_timestamp_to_timespec() 118 t /= 24; in cdf_timestamp_to_timespec() 124 t -= rdays - 1; in cdf_timestamp_to_timespec() 150 (void)&t; in cdf_timespec_to_timestamp() 160 *t += tm.tm_sec; in cdf_timespec_to_timestamp() 161 *t += tm.tm_min * 60; in cdf_timespec_to_timestamp() [all …]
|
/php-src/ext/date/tests/ |
H A D | 004.phpt | 13 var_dump(date("w", $t)); 14 var_dump(date("z", $t)); 15 var_dump(date("n", $t)); 16 var_dump(date("t", $t)); 17 var_dump(date("L", $t)); 18 var_dump(date("a", $t)); 19 var_dump(date("B", $t)); 20 var_dump(date("g", $t)); 21 var_dump(date("G", $t)); 22 var_dump(date("Z", $t)); [all …]
|
/php-src/ext/filter/tests/ |
H A D | 058.phpt | 16 'tést@example.com', 17 'tést.child@example.com', 18 'tést@xn--exmple-cua.com', 19 'tést@xn----zfa.xe', 20 'tést@subexample.wizard', 21 'tést@[255.255.255.255]', 23 'tést@[IPv6:2001::7344]', 25 'tést+reference@example.com', 44 string(17) "tést@example.com" 45 string(23) "tést.child@example.com" [all …]
|
/php-src/Zend/tests/gc/ |
H A D | gc_042.phpt | 13 $t = new Test; 14 $t->x = new stdClass; 15 $t->x->t = $t; 16 $a = (array) $t->x; 17 unset($t, $a); 26 ["t"]=>
|
/php-src/Zend/tests/numeric_strings/ |
H A D | trailling_whitespaces.phpt | 9 "123 \t\n\r\v\f", 11 " \t\n\r\v\f123", 13 " \t\n\r\v\f123 \t\n\r\v\f", 16 "123.0 \t\n\r\v\f", 18 " \t\n\r\v\f123.0", 20 " \t\n\r\v\f123 \t\n\r\v\f", 23 "123e0 \t\n\r\v\f", 25 " \t\n\r\v\f123e0", 27 " \t\n\r\v\f123e0 \t\n\r\v\f"
|
/php-src/Zend/tests/closures/ |
H A D | closure_from_callable_error.phpt | 16 catch (\Throwable $t) { 17 echo "Wrong exception type thrown: ".get_class($t)." : ".$t->getMessage()."\n"; 29 catch (\Throwable $t) { 41 catch (\Throwable $t) { 53 catch (\Throwable $t) { 65 catch (\Throwable $t) { 77 catch (\Throwable $t) { 89 catch (\Throwable $t) { 101 catch (\Throwable $t) { 113 catch (\Throwable $t) { [all …]
|