/PHP-8.1/ext/date/tests/ |
H A D | bug46268.phpt | 7 $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 D | bug77097.phpt | 5 $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 D | bug50055.phpt | 5 $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 D | bug75857.phpt | 7 $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 D | bug80057.phpt | 5 $now = new DateTimeImmutable; 7 $nowStr = $now->format("H:i");
|
H A D | gh9699.phpt | 7 $now = new DateTimeImmutable('2022-10-10 08:41:54.534620', new DateTimeZone('UTC')); 9 echo $date->diff($now)->format("%R %Y %M %D %H %I %S %F"), "\n";
|
H A D | bug66545.phpt | 11 $d1 = new DateTime('now',new DateTimeZone('Europe/Paris')); 12 $d2 = new DateTime('now',new DateTimeZone('Europe/Paris'));
|
H A D | bug73858.phpt | 18 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method 19 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method 27 $s = (new DateTime("now"))->setTimestamp(strtotime($ss)); // verbose setup method 33 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method 42 $e = (new DateTime("now"))->setTimestamp(strtotime($es)); // verbose setup method
|
H A D | bug-gh11416.phpt | 7 $now = new DateTimeImmutable(); 18 new DatePeriod($now, new DateInterval('P1D'), $date);
|
H A D | bug73460-002.phpt | 13 $now = clone $end; 26 $now = clone $start;
|
/PHP-8.1/ext/standard/tests/serialize/ |
H A D | bug78438.phpt | 84 > 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-8.1/sapi/fpm/fpm/ |
H A D | fpm_request.c | 40 struct timeval now; in fpm_request_accepting() local 42 fpm_clock_get(&now); in fpm_request_accepting() 53 proc->tv = now; in fpm_request_accepting() 64 struct timeval now; in fpm_request_reading_headers() local 70 fpm_clock_get(&now); in fpm_request_reading_headers() 85 proc->tv = now; in fpm_request_reading_headers() 113 struct timeval now; in fpm_request_info() local 124 proc->tv = now; in fpm_request_info() 167 proc->tv = now; in fpm_request_executing() 191 proc->tv = now; in fpm_request_end() [all …]
|
H A D | fpm_events.c | 34 #define fpm_event_set_timeout(ev, now) timeradd(&(now), &(ev)->frequency, &(ev)->timeout); argument 394 struct timeval now; in fpm_event_loop() local 403 fpm_clock_get(&now); in fpm_event_loop() 420 if (!timerisset(&ms) || timercmp(&ms, &now, <) || timercmp(&ms, &now, ==)) { in fpm_event_loop() 423 timersub(&ms, &now, &tmp); in fpm_event_loop() 442 fpm_clock_get(&now); in fpm_event_loop() 444 if (timercmp(&now, &q->ev->timeout, >) || timercmp(&now, &q->ev->timeout, ==)) { in fpm_event_loop() 447 fpm_event_set_timeout(ev, now); in fpm_event_loop() 507 struct timeval now; in fpm_event_add() local 528 fpm_clock_get(&now); in fpm_event_add() [all …]
|
H A D | fpm_process_ctl.c | 297 static void fpm_pctl_check_request_timeout(struct timeval *now) /* {{{ */ in fpm_pctl_check_request_timeout() argument 327 static void fpm_pctl_perform_idle_server_maintenance(struct timeval *now) /* {{{ */ in fpm_pctl_perform_idle_server_maintenance() argument 380 struct timeval last, now; in fpm_pctl_perform_idle_server_maintenance() local 387 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance() 388 if (last.tv_sec < now.tv_sec - wp->config->pm_process_idle_timeout) { in fpm_pctl_perform_idle_server_maintenance() 462 struct timeval now; in fpm_pctl_heartbeat() local 469 fpm_clock_get(&now); in fpm_pctl_heartbeat() 470 fpm_pctl_check_request_timeout(&now); in fpm_pctl_heartbeat() 487 struct timeval now; in fpm_pctl_perform_idle_server_maintenance_heartbeat() local 494 fpm_clock_get(&now); in fpm_pctl_perform_idle_server_maintenance_heartbeat() [all …]
|
/PHP-8.1/ext/spl/tests/ |
H A D | bug81992b.phpt | 14 echo "Destroyed, size is now still ", $this->obj->getSize(), "\n"; 34 echo "Size is now ", $obj->getSize(), "\n"; 48 Destroyed, size is now still 2 51 Size is now 1 55 Destroyed, size is now still 2 57 Size is now 2 62 Destroyed, size is now still 2 64 Size is now 10
|
/PHP-8.1/ext/standard/tests/misc/ |
H A D | time_sleep_until_basic.phpt | 17 $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-8.1/ext/standard/tests/array/ |
H A D | array_splice_basic.phpt | 14 // $input is now array("red", "green") 20 // $input is now array("red", "green") 26 // $input is now array("red", "yellow") 32 // $input is now array("red", "orange") 37 // $input is now array("red", "green", 44 // $input is now array("red", "green",
|
/PHP-8.1/ |
H A D | UPGRADING | 23 . Access to the $GLOBALS array is now subject to a number of restrictions. 107 additional parameter now. 116 . EC private keys will now be exported in PKCS#8 format rather than 167 html_entity_decode() and get_html_translation_table() now use 179 . SplFixedArray will now be JSON encoded like an array. 493 . mb_check_encoding() now checks input encoding more strictly. 494 . mb_detect_encoding() now checks input encoding more strictly 504 now return values instead of throwing PDOException. 513 . syslog() is now binary safe. 594 validation (e.g. minimum key sizes) is stricter now. [all …]
|
H A D | UPGRADING.INTERNALS | 12 i. zend_resource handle is now zend_long 37 - zend_file_handle.filename now is zend_string* 49 - zend_ini_scanner_globals.filename now is zend_string* 53 e. ZEND_ATOL() now returns the integer instead of assigning it as part of the 70 - [-Wimplicit-fallthrough=1] is now enabled by default. 83 - The "preparer" callback now accepts a zend_string* instead of 85 active_query_string members of pdo_stmt_t are now zend_string*. 99 function is now responsible for providing this information for use by 108 - The quoter handler now returns the quoted string as zend_string* instead 112 - The doer handler now accepts a zend_string* instead of char* + size_t [all …]
|
/PHP-8.1/ext/intl/tests/ |
H A D | calendar_getNow_basic.phpt | 10 $now = IntlCalendar::getNow(); 13 var_dump(abs($now - $proc_now) < 500);
|
/PHP-8.1/ext/xmlwriter/tests/ |
H A D | bug71536.phpt | 15 die('now'); // crashed with die() 22 now
|
/PHP-8.1/ext/standard/tests/file/windows_mb_path/ |
H A D | util.inc | 82 $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";
|
/PHP-8.1/ext/pgsql/tests/ |
H A D | 80_bug39971.phpt | 2 Bug #39971 (8.0+) (pg_insert/pg_update do not allow now() to be used for timestamp fields) 21 $values = array('tm' => 'now()');
|
/PHP-8.1/ext/oci8/tests/ |
H A D | drcp_connection_class.phpt | 17 echo "Setting a new connection class now\n"; 29 Setting a new connection class now
|
/PHP-8.1/ext/reflection/tests/ |
H A D | bug64936.phpt | 16 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…
|