mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
Merge branch 'master' into str_size_and_int64
This commit is contained in:
commit
18e4e5b350
2 files changed
+6
-3
No files matched your search
@@ -170,7 +170,10 @@ ZEND_GET_MODULE(readline)
|
||||
|
||||
PHP_MINIT_FUNCTION(readline)
|
||||
{
|
||||
using_history();
|
||||
#if HAVE_LIBREADLINE
|
||||
/* libedit don't need this call which set the tty in cooked mode */
|
||||
using_history();
|
||||
#endif
|
||||
return PHP_MINIT(cli_readline)(INIT_FUNC_ARGS_PASSTHRU);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ $input = "10:00:00 AM July 2 1963";
|
||||
$tstamp = strtotime($input);
|
||||
|
||||
$str = strftime("%r %B%e %Y %Z", $tstamp);
|
||||
var_dump(strptime($str, '%H:%M:%S %p %B %d %Y %Z'));
|
||||
var_dump(strptime($str, '%H:%M:%S %p %B %d %Y'));
|
||||
|
||||
$str = strftime("%T %D", $tstamp);
|
||||
var_dump(strptime($str, '%H:%M:%S %m/%d/%y'));
|
||||
@@ -55,7 +55,7 @@ array(9) {
|
||||
["tm_yday"]=>
|
||||
int(182)
|
||||
["unparsed"]=>
|
||||
string(3) "GMT"
|
||||
string(4) " GMT"
|
||||
}
|
||||
array(9) {
|
||||
["tm_sec"]=>
|
||||
|
||||
Reference in new issue
Block a user