1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00

fix php_error_docref parameters

This commit is contained in:
Marcus Boerger
2002-08-22 10:16:03 +00:00
parent 47d8e08b11
commit 4c1f3dec65

View File

@@ -227,9 +227,9 @@ PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, const
if (filter == NULL) {
/* TODO: these need correct docrefs */
if (factory == NULL)
php_error_docref(NULL, E_WARNING TSRMLS_CC, "unable to locate filter \"%s\"", filtername);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to locate filter \"%s\"", filtername);
else
php_error_docref(NULL, E_WARNING TSRMLS_CC, "unable to create or locate filter \"%s\"", filtername);
php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to create or locate filter \"%s\"", filtername);
}
return filter;
@@ -1221,7 +1221,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
}
if (stream->filterhead) {
php_error_docref(NULL, E_WARNING TSRMLS_CC, "cannot cast a filtered stream on this system");
php_error_docref(NULL TSRMLS_CC, E_WARNING, "cannot cast a filtered stream on this system");
return FAILURE;
}