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

index 38670e8dc5200b14d3af7af37b3ed7322c446a69..744fa21d1ca9f50cf763b3d0364d4b5a70ff7b82 100644 (file)
@@ -535,7 +535,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 36306bb9d580ec2491d47337c2385842e193184b..6e41cc593d35e0541c704e5bb05dbd5cf7a31ce2 100644 (file)
@@ -404,7 +404,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;
        }
 
@@ -440,7 +440,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;
        }