From: Antony Dovgal Date: Fri, 14 Jul 2006 20:45:37 +0000 (+0000) Subject: MFB: rephrase the error message (fixes #38106) X-Git-Tag: RELEASE_1_0_0RC1~2416 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44ad98405f2e5d02719cbda589dea2d44421c899;p=php MFB: rephrase the error message (fixes #38106) --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 1f28533d75..91c2e19673 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -545,7 +545,7 @@ PHP_FUNCTION(file_get_contents) } if (offset > 0 && php_stream_seek(stream, offset, SEEK_SET) < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to %ld position in the stream.", offset); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream.", offset); RETURN_FALSE; } diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index f8b22981d1..2b8dceea6b 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -397,7 +397,7 @@ PHP_FUNCTION(stream_get_contents) php_stream_from_zval(stream, &zsrc); if (pos > 0 && php_stream_seek(stream, pos, SEEK_SET) < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to %ld position in the stream.", pos); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream.", pos); RETURN_FALSE; } @@ -427,7 +427,7 @@ PHP_FUNCTION(stream_copy_to_stream) php_stream_from_zval(dest, &zdest); if (pos > 0 && php_stream_seek(src, pos, SEEK_SET) < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to %ld position in the stream.", pos); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to seek to position %ld in the stream.", pos); RETURN_FALSE; }