]> granicus.if.org Git - php/commitdiff
MFB: rephrase the error message (fixes #38106)
authorAntony Dovgal <tony2001@php.net>
Fri, 14 Jul 2006 20:45:37 +0000 (20:45 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 14 Jul 2006 20:45:37 +0000 (20:45 +0000)
ext/standard/file.c
ext/standard/streamsfuncs.c

index 1f28533d75d59ffe9de4b01d2f0df568aba3b1f9..91c2e1967373b48d180b060cab7ac0eb3d234cd0 100644 (file)
@@ -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;
        }
 
index f8b22981d16397c3c585271f02a8c954db951d9e..2b8dceea6bd1883c6f5af3a53940df998d72ea3f 100644 (file)
@@ -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;
        }