summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-01-07 22:52:24 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-01-07 22:52:24 +0000
commitb86a4edeed5ce3a6f44da858c29821c38dd9f2d5 (patch)
tree652fff587c11c4660214fc757257dc8254c33270
parenta9999190c6220a2105a571be8454134cb4a5c25e (diff)
downloadphp-git-b86a4edeed5ce3a6f44da858c29821c38dd9f2d5.tar.gz
Made error msg format more consistent
-rw-r--r--ext/standard/filters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/filters.c b/ext/standard/filters.c
index 3378384583..2415ee934d 100644
--- a/ext/standard/filters.c
+++ b/ext/standard/filters.c
@@ -375,7 +375,7 @@ static size_t strfilter_base64_read(php_stream *stream, php_stream_filter *thisf
if (!(i & 0xc0)) {
if (ustat) {
- php_error(E_WARNING, "stream filter(stream.base64): invalid base64 sequence");
+ php_error(E_WARNING, "stream filter(%s): invalid base64 sequence", thisfilter->fops->label);
return 0;
}
if (6 <= pack_bcnt) {
@@ -390,7 +390,7 @@ static size_t strfilter_base64_read(php_stream *stream, php_stream_filter *thisf
}
} else if (ustat) {
if (pack_bcnt == 8 || pack_bcnt == 2) {
- php_error(E_WARNING, "stream filter(stream.base64): unexpected end of stream");
+ php_error(E_WARNING, "stream filter(%s): unexpected end of stream", thisfilter->fops->label);
return 0;
}
}
@@ -547,7 +547,7 @@ static size_t strfilter_quoted_printable_read(php_stream *stream, php_stream_fil
unsigned int nbl = (*ps >= 'A' ? *ps - 0x37 : *ps - 0x30);
if (nbl > 15) {
- php_error(E_WARNING, "stream filter(stream.quoted-printable): invalid character sequence");
+ php_error(E_WARNING, "stream filter(%s): invalid character sequence", thisfilter->fops->label);
return 0;
}
v = (v << 4) | nbl;