/php-src/ext/standard/ |
H A D | uniqid.c | 46 int sec, usec; in PHP_FUNCTION() local 69 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION() 81 uniqid = strpprintf(0, "%s%08x%05x%.8F", prefix, sec, usec, seed); in PHP_FUNCTION() 83 uniqid = strpprintf(0, "%s%08x%05x", prefix, sec, usec); in PHP_FUNCTION()
|
H A D | streamsfuncs.c | 770 zend_long sec, usec = 0; in PHP_FUNCTION() local 781 Z_PARAM_LONG_OR_NULL(usec, usecnull) in PHP_FUNCTION() 819 if (usec != 0) { in PHP_FUNCTION() 830 } else if (usec < 0) { in PHP_FUNCTION() 836 tv.tv_sec = (long)(sec + (usec / 1000000)); in PHP_FUNCTION() 837 tv.tv_usec = (long)(usec % 1000000); in PHP_FUNCTION()
|
/php-src/ext/date/tests/ |
H A D | gh14383.phpt | 23 foreach ($cases as [$usec, $label]) { 25 echo DateTime::createFromTimestamp($usec)->format('s.u'), "\n"; 29 foreach ($cases as [$usec, $label]) { 31 echo DateTime::createFromTimestamp(-$usec)->format('s.u'), "\n";
|
H A D | gettimeofday_basic.phpt | 31 ["usec"]=> 41 ["usec"]=>
|
H A D | bug35143.phpt | 15 ["usec"]=>
|
H A D | bug64887.phpt | 14 '-6 usec',
|
/php-src/ext/sockets/tests/ |
H A D | socket_select-wrongparams-4.phpt | 4 usec > 999999 20 $usec = 2000000; 21 var_dump(socket_select($sockets, $write, $except, $time, $usec));
|
H A D | socket_icmp.phpt | 45 $timeout = ['sec' => 4, 'usec' => 0]; 46 if (socket_select($read, $write, $except, $timeout['sec'], $timeout['usec']) > 0) {
|
H A D | socket_set_option_timeo_error.phpt | 11 $options_1 = array("sec" => 1, "usec" => "aaaaa"); 12 $options_2 = array("sec" => new stdClass(), "usec" => "1");
|
H A D | socket_setopt_basic.phpt | 17 $options = array("sec" => 1, "usec" => 0);
|
H A D | socket_set_option_rcvtimeo.phpt | 24 $options = array("sec" => 1, "usec" => 0);
|
H A D | socket_set_option_sndtimeo.phpt | 24 $options = array("sec" => 1, "usec" => 0);
|
/php-src/ext/date/ |
H A D | php_date.h | 163 PHPAPI void php_date_initialize_from_ts_long(php_date_obj *dateobj, zend_long sec, int usec);
|
H A D | php_date.c | 2359 *usec = tp.tv_usec; in php_date_get_current_time_with_fraction() 2362 *usec = 0; in php_date_get_current_time_with_fraction() 2375 suseconds_t usec; in php_date_initialize() local 2456 php_date_set_time_fraction(now, usec); in php_date_initialize() 2496 int usec; in php_date_initialize_from_ts_double() local 2511 usec = (int) round(fmod(ts, 1) * 1000000); in php_date_initialize_from_ts_double() 2513 if (UNEXPECTED(abs(usec) == 1000000)) { in php_date_initialize_from_ts_double() 2514 sec += usec > 0 ? 1 : -1; in php_date_initialize_from_ts_double() 2515 usec = 0; in php_date_initialize_from_ts_double() 2518 if (UNEXPECTED(usec < 0)) { in php_date_initialize_from_ts_double() [all …]
|
/php-src/ext/sockets/ |
H A D | sockets.c | 597 zend_long sec, usec = 0; local 606 Z_PARAM_LONG(usec) 644 if (usec > 999999) { 645 tv.tv_sec = sec + (usec / 1000000); 646 tv.tv_usec = usec % 1000000; 649 tv.tv_usec = usec; 1883 zval *sec, *usec; local 2034 if ((usec = zend_hash_str_find(opt_ht, usec_key, sizeof(usec_key) - 1)) == NULL) { 2040 zend_long valusec = zval_get_long(usec);
|
/php-src/ext/mysqli/ |
H A D | mysqli_nonapi.c | 745 zend_long sec = 0, usec = 0; local 749 …eters(ZEND_NUM_ARGS(), "a!a!al|l", &r_array, &e_array, &dont_poll_array, &sec, &usec) == FAILURE) { 756 if (usec < 0) { 780 ret = mysqlnd_poll(new_r_array, new_e_array, &new_dont_poll_array, sec, usec, &desc_num);
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_connection.c | 2184 mysqlnd_poll(MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, int *… argument 2194 if (sec < 0 || usec < 0) { 2231 if (usec > 999999) { 2232 tv.tv_sec = sec + (usec / 1000000); 2233 tv.tv_usec = usec % 1000000; 2236 tv.tv_usec = usec;
|
H A D | mysqlnd.h | 115 …l(MYSQLND **r_array, MYSQLND **e_array, MYSQLND ***dont_poll, long sec, long usec, int * desc_num);
|
/php-src/sapi/cgi/ |
H A D | cgi_main.c | 2649 int usec; local 2654 usec = (int)(end.tv_usec - start.tv_usec); 2657 usec = (int)(end.tv_usec + 1000000 - start.tv_usec); 2659 fprintf(stderr, "\nElapsed time: %d.%06d sec\n", sec, usec);
|
/php-src/ext/date/lib/ |
H A D | parse_date.re | 186 { "usec", TIMELIB_MICROSEC, 1 }, 1142 reltextunit = 'ms' | 'µs' | (('msec'|'millisecond'|'µsec'|'microsecond'|'usec'|'sec'|'second'|'min'…
|