TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
561 B
25 lines
561 B
--TEST--
|
|
Test localtime() function : error conditions
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists('strptime')) {
|
|
echo "SKIP strptime function not available in build";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
//Set the default time zone
|
|
date_default_timezone_set("Europe/London");
|
|
|
|
echo "*** Testing strptime() : error conditions ***\n";
|
|
|
|
echo "\n-- Testing strptime() function on failure --\n";
|
|
$format = '%b %d %Y %H:%M:%S';
|
|
var_dump( strptime('foo', $format) );
|
|
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing strptime() : error conditions ***
|
|
|
|
-- Testing strptime() function on failure --
|
|
bool(false)
|
|
|