/php-src/ext/date/tests/ |
H A D | bug30532.phpt | 8 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +1 hour'))."\n"; 9 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +2 hours'))."\n"; 10 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 EDT +3 hours'))."\n"; 14 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +1 hour'))."\n"; 15 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +2 hours'))."\n"; 16 echo date('Y-m-d H:i:s T', strtotime('2004-10-31 +3 hours'))."\n";
|
H A D | DatePeriod_no_advance_on_valid.phpt | 6 $start = DateTime::createFromFormat('Y-m-d', '2022-01-01'); 7 $end = DateTime::createFromFormat('Y-m-d', '2022-01-04'); 13 echo $item->format('Y-m-d') . "\n"; 20 echo $item->format('Y-m-d') . "\n"; 29 echo $item->format('Y-m-d') . "\n"; 36 echo $item->format('Y-m-d') . "\n";
|
H A D | bug80610.phpt | 5 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur… 9 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n" ); 11 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur… 15 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n"); 17 $expectEaster = date_create_from_format('Y-m-d H:i:s', '2020-04-12 12:00:00', new DateTimeZone('Eur… 21 echo('easter '.$expectEaster->format('Y-m-d H:i:s')."\n");
|
H A D | bug33414-2.phpt | 8 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 10 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; 16 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 18 print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n"; 24 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 32 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 40 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 48 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 56 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; 64 print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n"; [all …]
|
H A D | date_period-immutable.phpt | 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|
H A D | date_basic1.phpt | 13 var_dump( date("m.d.y", $timestamp) ); 16 var_dump( date('h-i-s, j-m-y, it is w Day', $timestamp) ); 19 var_dump( date('H:m:s \m \i\s\ \m\o\n\t\h', $timestamp) ); 32 string(19) "10:02:30 m is month"
|
H A D | date_format_basic1.phpt | 12 var_dump( date_format($date, "m.d.y") ); 15 var_dump( date_format($date, 'h-i-s, j-m-y, it is w Day') ); 18 var_dump( date_format($date, 'H:m:s \m \i\s\ \m\o\n\t\h') ); 31 string(19) "22:07:41 m is month"
|
/php-src/ext/pcre/tests/ |
H A D | preg_match_non_capture.phpt | 6 preg_match('/.(.)./n', 'abc', $m); 7 var_dump($m); 9 preg_match('/.(?P<test>.)./n', 'abc', $m); 10 var_dump($m);
|
/php-src/ext/phar/tests/ |
H A D | phar_createdefaultstub.phpt | 153 $m = ''; 161 $m .= $last; 252 $m = substr($m, 14 + $l[1]); 264 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 447 $m = ''; 455 $m .= $last; 546 $m = substr($m, 14 + $l[1]); 558 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 749 $m = ''; 757 $m .= $last; [all …]
|
H A D | phar_setdefaultstub.phpt | 173 $m = ''; 181 $m .= $last; 272 $m = substr($m, 14 + $l[1]); 284 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 468 $m = ''; 476 $m .= $last; 567 $m = substr($m, 14 + $l[1]); 579 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 763 $m = ''; 771 $m .= $last; [all …]
|
/php-src/Zend/tests/weakrefs/ |
H A D | gh10043-011.phpt | 9 $m = new WeakMap(); 13 $m[$k] = $v; 15 $m2 = $m; 20 var_dump($m);
|
/php-src/ext/standard/tests/general_functions/ |
H A D | ghsa-9fcc-425m-g385_001.phpt | 2 GHSA-9fcc-425m-g385 - bypass CVE-2024-1874 - batch file variation 20 $batch_file_path = __DIR__ . '/ghsa-9fcc-425m-g385_001.bat'; 42 '"%sghsa-9fcc-425m-g385_001.bat."' is not recognized as an internal or external command, 44 %sghsa-9fcc-425m-g385_001.bat 46 %sghsa-9fcc-425m-g385_001.bat. 48 %sghsa-9fcc-425m-g385_001.bat. ... 50 %sghsa-9fcc-425m-g385_001.bat. ... . 52 '"%sghsa-9fcc-425m-g385_001.bat. ... . ."' is not recognized as an internal or external command, 58 @unlink(__DIR__ . '/ghsa-9fcc-425m-g385_001.bat');
|
/php-src/ext/phar/tests/files/ |
H A D | openssl.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
H A D | openssl256.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
H A D | openssl512.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
H A D | include_path2.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
H A D | nophar.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | nophar.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
H A D | openssl.phar | 118 $m = ''; 123 $read = $L[1] - strlen($m); 126 $m .= $last; 129 if (strlen($m) < $L[1]) { 131 strlen($m) .'" should be "' . 135 $info = self::_unpack($m); 213 static function _unpack($m) 217 $m = substr($m, 14 + $l[1]); 229 $ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3] 231 $ret['m'][$savepath][7] = $o; [all …]
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_driver.c | 121 new_object->m = mysqlnd_conn_get_methods(); in MYSQLND_METHOD() 134 data->m = mysqlnd_conn_data_get_methods(); in MYSQLND_METHOD() 139 data->m->get_reference(data); in MYSQLND_METHOD() 149 new_object->m->dtor(new_object); in MYSQLND_METHOD() 175 new_object->m = to_be_cloned->m; in MYSQLND_METHOD() 179 new_object->m->dtor(new_object); in MYSQLND_METHOD() 196 ret->m = mysqlnd_stmt_get_methods(); in MYSQLND_METHOD() 215 stmt->conn = conn->m->get_reference(conn); in MYSQLND_METHOD() 235 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD() 237 pfc->data->m.init(pfc, stats, error_info); in MYSQLND_METHOD() [all …]
|
/php-src/Zend/tests/ |
H A D | bug71428.1.phpt | 6 public function m(?array $a = null) {} 9 public function m(array $a = []) {} 13 Fatal error: Declaration of B::m(array $a = []) must be compatible with A::m(?array $a = null) in %…
|
/php-src/ext/date/lib/ |
H A D | interval.c | 50 ((*one)->y == (*two)->y && (*one)->m > (*two)->m) || in sort_old_to_new() 51 ((*one)->y == (*two)->y && (*one)->m == (*two)->m && (*one)->d > (*two)->d) || in sort_old_to_new() 52 …((*one)->y == (*two)->y && (*one)->m == (*two)->m && (*one)->d == (*two)->d && (*one)->h > (*two)-… in sort_old_to_new() 53 …((*one)->y == (*two)->y && (*one)->m == (*two)->m && (*one)->d == (*two)->d && (*one)->h == (*two)… in sort_old_to_new() 89 rt->m = two->m - one->m; in timelib_diff_with_tzid() 160 rt->m = two->m - one->m; in timelib_diff() 224 t->relative.m = interval->m * bias; in timelib_add() 253 t->relative.m = 0 - (interval->m * bias); in timelib_sub() 304 t->relative.m = interval->m * bias; in timelib_add_wall() 307 if (t->relative.y || t->relative.m || t->relative.d) { in timelib_add_wall() [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_ereg_dupnames.phpt | 13 mb_ereg($pattern, '中?', $m); 14 var_dump($m); 15 mb_ereg($pattern, '中!', $m); 16 var_dump($m);
|
/php-src/ext/reflection/tests/ |
H A D | gh8982.phpt | 20 public function m() 37 $m = [new C(), 'm'](...); 42 test(F::class, $m); 43 test(M::class, $m);
|
H A D | 001.phpt | 13 foreach($this->getMethods() as $m) 15 $res[] = $m->class . '::' . $m->name; 62 foreach($exp as $m) 64 if (!in_array($m, $exp)) 66 $miss[] = $m;
|