Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 183) sorted by relevance

12345678

/PHP-7.4/ext/date/tests/
H A Dbug46268.phpt7 $now = new DateTime('2008-10-10 01:02:03');
8 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
10 $now->modify("1 day");
11 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
13 $now->modify("1 hour");
14 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
16 $now->setTime(0, 0, 0);
17 //date_time_set($now, 0, 0, 0);
18 echo $now->format("Y-m-d H:i:s") . PHP_EOL;
H A Dbug77097.phpt5 $now = new DateTime('2018-11-03 11:34:20.781751');
8 $diff = $now->diff($ago);
11 $diff = $ago->diff($now);
14 $diff = $now->diff($ago, true);
17 $diff = $ago->diff($now, true);
H A Dbug50055.phpt5 $now = '2010-03-07 13:21:38 UTC';
7 $da1 = date_create( $now );
8 $ds1 = date_create( $now );
15 $da2 = date_create( $now );
16 $ds2 = date_create( $now );
H A Dbug75857.phpt7 $longDate = new DateTime('now', new DateTimeZone('America/Argentina/ComodRivadavia'));
8 $mediumDate = new DateTime('now', new DateTimeZone('America/Indiana/Indianapolis'));
9 $smallDate = new DateTime('now', new DateTimeZone('America/Sao_Paulo'));
H A Dbug71635.phpt6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
H A Dbug33536.phpt2 Bug #33456 (strtotime defaults to now even on non time string)
/PHP-7.4/ext/standard/tests/serialize/
H A Dbug78438.phpt84 > Serializing now
85 > Unserializing now
89 > Serializing now
90 > Unserializing now
94 > Serializing now
95 > Unserializing now
99 > Serializing now
104 > Serializing now
109 > Serializing now
114 > Serializing now
[all …]
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_request.c40 struct timeval now; in fpm_request_accepting() local
42 fpm_clock_get(&now); in fpm_request_accepting()
51 proc->tv = now; in fpm_request_accepting()
63 struct timeval now; in fpm_request_reading_headers() local
69 fpm_clock_get(&now); in fpm_request_reading_headers()
82 proc->tv = now; in fpm_request_reading_headers()
111 struct timeval now; in fpm_request_info() local
122 proc->tv = now; in fpm_request_info()
166 proc->tv = now; in fpm_request_executing()
191 proc->tv = now; in fpm_request_end()
[all …]
H A Dfpm_events.c34 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout); argument
389 struct timeval now; in fpm_event_loop() local
398 fpm_clock_get(&now); in fpm_event_loop()
415 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop()
418 timersub(&ms, &now, &tmp); in fpm_event_loop()
437 fpm_clock_get(&now); in fpm_event_loop()
439 if (timercmp(&now, &q->ev->timeout, >) || timercmp(&now, &q->ev->timeout, ==)) { in fpm_event_loop()
442 fpm_event_set_timeout(ev, now); in fpm_event_loop()
502 struct timeval now; in fpm_event_add() local
523 fpm_clock_get(&now); in fpm_event_add()
[all …]
H A Dfpm_process_ctl.c294 static void fpm_pctl_check_request_timeout(struct timeval *now) /* {{{ */ in fpm_pctl_check_request_timeout() argument
313 static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{ */ in fpm_pctl_perform_idle_server_maintenance() argument
363 struct timeval last, now; in fpm_pctl_perform_idle_server_maintenance() local
370 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance()
371 if (last.tv_sec < now.tv_sec - wp->config->pm_process_idle_timeout) { in fpm_pctl_perform_idle_server_maintenance()
447 struct timeval now; in fpm_pctl_heartbeat() local
454 fpm_clock_get(&now); in fpm_pctl_heartbeat()
455 fpm_pctl_check_request_timeout(&now); in fpm_pctl_heartbeat()
472 struct timeval now; in fpm_pctl_perform_idle_server_maintenance_heartbeat() local
479 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance_heartbeat()
[all …]
/PHP-7.4/ext/standard/tests/misc/
H A Dtime_sleep_until_basic.phpt17 $now = microtime(true);
28 $tmp = round($now, 3);
29 $now = $tmp >= (int)$time ? $tmp : $tmp + .05;
33 if ($now + 0.002 >= $sleepUntil) {
38 echo "Now: ", $now, "\n";
/PHP-7.4/ext/standard/tests/array/
H A Darray_splice_basic.phpt15 // $input is now array("red", "green")
21 // $input is now array("red", "yellow")
27 // $input is now array("red", "orange")
32 // $input is now array("red", "green",
39 // $input is now array("red", "green",
/PHP-7.4/
H A DUPGRADING121 explicitly prohibited now.
165 * PASSWORD_BCRYPT was int 1; now is string '2y'
166 * PASSWORD_ARGON2I was int 2; now is string 'argon2i'
184 . round(-0.0) will now return -0.0 rather than +0.0.
215 contravariance. The following code will now work:
324 . PDOStatement::getColumnMeta() is now available
589 IMG_CROP_DEFAULT; passing -1 is now deprecated.
602 . The Intl extension now requires at least ICU 50.1.
603 . ResourceBundle now implements Countable.
639 . SimpleXMLElement now implements Countable.
[all …]
H A DUPGRADING.INTERNALS56 clone, now we use the same private property_info, and should also
117 g. The following object handlers are now required (must be non-NULL):
146 class_entry->static_members_table now have to be accessed through
149 op_arrays. Instead, now you have to reserve op_array handle using
171 m. The write_property() object handler now returns the assigned value (after
175 n. Assignments to references now need to ensure that they respect property
221 ZEND_ASSIGN_STATIC_PROP in extended value, now we use ZEND_ASSIGN_OP,
229 y. The read and write operations of php_stream_ops now return ssize_t, with
237 - The hash extension is now always available, meaning the --enable-hash
276 - new --enable-rtld-now build option allow to switch dlopen behavior
[all …]
/PHP-7.4/ext/intl/tests/
H A Dcalendar_getNow_basic.phpt12 $now = IntlCalendar::getNow();
15 var_dump(abs($now - $proc_now) < 500);
/PHP-7.4/ext/xmlwriter/tests/
H A Dbug71536.phpt17 die('now'); // crashed with die()
24 now
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dutil.inc82 $now = get_basename_with_cp($full, $cp, false);
83 if ($now !== $basename) {
84 echo "expected '$basename', got '$now'\n";
102 $now = get_basename_with_cp($full, $cp, false);
103 if ($now !== $basename) {
104 echo "expected '$basename', got '$now'\n";
H A Dbug54028_2.phpt30 $now = $prefix . $d;
31 var_dump(chdir($now));
/PHP-7.4/ext/pgsql/tests/
H A D80_bug39971.phpt2 Bug #39971 (8.0+) (pg_insert/pg_update do not allow now() to be used for timestamp fields)
19 $values = array('tm' => 'now()');
/PHP-7.4/ext/oci8/tests/
H A Ddrcp_connection_class.phpt16 echo "Setting a new connection class now\n";
28 Setting a new connection class now
/PHP-7.4/ext/reflection/tests/
H A Dbug64936.phpt16 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
23 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_fetch_serialize_simple.phpt43 printf("\nAnd now magic PDO using fetchAll(PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE)...\n");
57 printf("\nAnd now PDO using setFetchMode(PDO::FETCH:CLASS|PDO::FETCH_SERIALIZE) + fetch()...\n");
79 And now magic PDO using fetchAll(PDO::FETCH_CLASS|PDO::FETCH_SERIALIZE)...
87 And now PDO using setFetchMode(PDO::FETCH:CLASS|PDO::FETCH_SERIALIZE) + fetch()...
/PHP-7.4/tests/output/
H A Dbug60322.phpt2 Bug #60322 (ob_get_clean() now raises an E_NOTICE if no buffers exist)
/PHP-7.4/Zend/tests/
H A Derrmsg_024.phpt2 No more errmsg: can now change initial value of property
/PHP-7.4/ext/standard/tests/general_functions/
H A Disset_basic2.phpt34 echo "..now set\n";
56 ..now set

Completed in 27 milliseconds

12345678