diff options
| author | Hannes Magnusson <bjori@php.net> | 2006-10-08 13:34:24 +0000 |
|---|---|---|
| committer | Hannes Magnusson <bjori@php.net> | 2006-10-08 13:34:24 +0000 |
| commit | 176b72284c06793e51180eca0a03af1c8691d841 (patch) | |
| tree | 917632aec222a34e274711b7bd19c4f6372187fd /ext/ftp | |
| parent | 32d1b3ad5584b76b27024df186758b94c42c721a (diff) | |
| download | php-git-176b72284c06793e51180eca0a03af1c8691d841.tar.gz | |
Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
Diffstat (limited to 'ext/ftp')
| -rw-r--r-- | ext/ftp/ftp.c | 10 | ||||
| -rw-r--r-- | ext/ftp/php_ftp.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 99a953467e..29d1c84f1b 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -810,7 +810,7 @@ ftp_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t type, if (resumepos > 0) { if (resumepos > 2147483647) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483647 bytes."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483647 bytes"); goto bail; } sprintf(arg, "%u", resumepos); @@ -907,7 +907,7 @@ ftp_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type, i if (startpos > 0) { if (startpos > 2147483647) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes"); goto bail; } sprintf(arg, "%u", startpos); @@ -1598,7 +1598,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC) if ((tmpstream = php_stream_fopen_tmpfile()) == NULL) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create temporary file. Check permissions in temporary files directory."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to create temporary file. Check permissions in temporary files directory"); return NULL; } @@ -1706,7 +1706,7 @@ ftp_nb_get(ftpbuf_t *ftp, php_stream *outstream, const char *path, ftptype_t typ * since php is 32 bit by design, we bail out with warning */ if (resumepos > 2147483647) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483648 bytes."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files greater than 2147483648 bytes"); goto bail; } sprintf(arg, "%u", resumepos); @@ -1824,7 +1824,7 @@ ftp_nb_put(ftpbuf_t *ftp, const char *path, php_stream *instream, ftptype_t type } if (startpos > 0) { if (startpos > 2147483647) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "PHP cannot handle files with a size greater than 2147483647 bytes"); goto bail; } sprintf(arg, "%u", startpos); diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index a8d9f43b6a..cc63b6a5cc 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1024,7 +1024,7 @@ PHP_FUNCTION(ftp_nb_continue) ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); if (!ftp->nb) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "no nbronous transfer to continue."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "no nbronous transfer to continue"); RETURN_LONG(PHP_FTP_FAILED); } |
