mirror of
https://github.com/php/php-src.git
synced 2026-04-10 17:43:13 +02:00
What the heck is CUT? Assume someone meant UTC here. And fix a
warning.
This commit is contained in:
@@ -521,7 +521,7 @@ PHP_FUNCTION(date)
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto string gmdate(string format [, int timestamp])
|
||||
Format a GMT/CUT date/time */
|
||||
Format a GMT/UTC date/time */
|
||||
PHP_FUNCTION(gmdate)
|
||||
{
|
||||
php_date(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
|
||||
@@ -762,7 +762,7 @@ PHP_FUNCTION(strftime)
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto string gmstrftime(string format [, int timestamp])
|
||||
Format a GMT/CUT time/date according to locale settings */
|
||||
Format a GMT/UCT time/date according to locale settings */
|
||||
PHP_FUNCTION(gmstrftime)
|
||||
{
|
||||
_php_strftime(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
|
||||
|
||||
@@ -2083,7 +2083,7 @@ size_t php_fread_all(char **buf, int socket, FILE *fp, int issock) {
|
||||
ptr = *buf = emalloc(step);
|
||||
max_len = step;
|
||||
|
||||
while(ret = FP_FREAD(ptr, max_len - len, socket, fp, issock)) {
|
||||
while((ret = FP_FREAD(ptr, max_len - len, socket, fp, issock))) {
|
||||
len += ret;
|
||||
if(len + min_room >= max_len) {
|
||||
*buf = erealloc(*buf, max_len + step);
|
||||
|
||||
Reference in New Issue
Block a user