File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Bug #38524 (strptime() does not initialize the internal date storage structure)
3
3
--SKIPIF--
4
- <?php if (!function_exists ('strptime ' )) echo "SKIP " ; ?>
4
+ <?php
5
+ if (!function_exists ('strptime ' )) echo "SKIP " ;
6
+ if (str_contains (PHP_OS , 'FreeBSD ' )) {
7
+ die ("skip strptime() behaves differently on FreeBSD " );
8
+ }
9
+ ?>
5
10
--FILE--
6
11
<?php
7
12
var_dump (strptime ('2006-08-20 ' , '%Y-%m-%d ' ));
Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ Test strptime() function : basic functionality
5
5
if (!function_exists ('strptime ' )) {
6
6
die ("skip - strptime() function not available in this build " );
7
7
}
8
- if (PHP_OS == 'Darwin ' ) die ("skip - strptime() behaves differently on Darwin " );
8
+ if (PHP_OS_FAMILY == 'Darwin ' || PHP_OS_FAMILY == 'BSD ' ) {
9
+ die ("skip strptime() behaves differently on Darwin/BSD " );
10
+ }
9
11
if (!strftime ('%Z ' )) die ('skip strftime does not support %Z ' );
10
12
?>
11
13
--FILE--
You can’t perform that action at this time.
0 commit comments