1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 12:42:29 +02:00

- Return number of bytes written instead of just TRUE. (Path by Paul Hudson,

hudzilla@php.net)
This commit is contained in:
Derick Rethans
2003-06-28 08:21:02 +00:00
parent 3e67c2a63a
commit f2acb42223

View File

@@ -474,8 +474,8 @@ PHP_FUNCTION(file_get_contents)
}
/* }}} */
/* {{{ proto string file_put_contents(string file, string data[, int flags[, resource context]])
Write/Create a file with contents data */
/* {{{ proto int file_put_contents(string file, string data[, int flags[, resource context]])
Write/Create a file with contents data and returns the number */
PHP_FUNCTION(file_put_contents)
{
php_stream *stream;
@@ -506,7 +506,7 @@ PHP_FUNCTION(file_put_contents)
}
php_stream_close(stream);
RETURN_TRUE;
RETURN_LONG(numbytes);
}
/* }}} */