diff options
author | Marcus Boerger <helly@php.net> | 2002-08-25 18:45:02 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-08-25 18:45:02 +0000 |
commit | a1f7bb12f1cd3ba6bb50e1b749537095813d38b2 (patch) | |
tree | 2bb94edcc989a6658b96b691dc34615b6cc7aa89 /main/user_streams.c | |
parent | 4bbe4c703cd7b6070d7eddf5197b05b8ee0ab0f8 (diff) | |
download | php-git-a1f7bb12f1cd3ba6bb50e1b749537095813d38b2.tar.gz |
use php_error_docref()
Diffstat (limited to 'main/user_streams.c')
-rw-r--r-- | main/user_streams.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/user_streams.c b/main/user_streams.c index d5b852c8f0..ff22f48159 100644 --- a/main/user_streams.c +++ b/main/user_streams.c @@ -209,7 +209,7 @@ PHP_FUNCTION(file_register_wrapper) } if (!PG(allow_url_fopen)) { - zend_error(E_WARNING, "%s(): fopen wrappers have been disabled", get_active_function_name(TSRMLS_C)); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "fopen wrappers have been disabled"); RETURN_FALSE; } @@ -230,7 +230,7 @@ PHP_FUNCTION(file_register_wrapper) RETURN_TRUE; } } else { - zend_error(E_WARNING, "%s(): class '%s' is undefined", get_active_function_name(TSRMLS_C), + php_error_docref(NULL TSRMLS_CC, E_WARNING, "class '%s' is undefined", classname); } @@ -272,7 +272,7 @@ static size_t php_userstreamop_write(php_stream *stream, const char *buf, size_t /* don't allow strange buffer overruns due to bogus return */ if (didwrite > count) { - zend_error(E_WARNING, "%s::" USERSTREAM_WRITE " - wrote %d bytes more data than requested (%d written, %d max)", + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s::" USERSTREAM_WRITE " - wrote %d bytes more data than requested (%d written, %d max)", us->wrapper->classname, didwrite - count, didwrite, count); didwrite = count; @@ -328,7 +328,7 @@ static size_t php_userstreamop_read(php_stream *stream, char *buf, size_t count if (retval && Z_TYPE_P(retval) == IS_STRING) { didread = Z_STRLEN_P(retval); if (didread > count) { - zend_error(E_WARNING, "%s::" USERSTREAM_READ " - read %d bytes more data than requested (%d read, %d max) - excess data will be lost", + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s::" USERSTREAM_READ " - read %d bytes more data than requested (%d read, %d max) - excess data will be lost", us->wrapper->classname, didread - count, didread, count); didread = count; } @@ -484,7 +484,7 @@ static char *php_userstreamop_gets(php_stream *stream, char *buf, size_t size TS if (retval && Z_TYPE_P(retval) == IS_STRING) { didread = Z_STRLEN_P(retval); if (didread > size) { - zend_error(E_WARNING, "%s::" USERSTREAM_GETS " - read more data than requested; some data will be lost", + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s::" USERSTREAM_GETS " - read more data than requested; some data will be lost", us->wrapper->classname); didread = size; } |