From 60af5507a5586b8b476e85f92a87d4f8c48d399b Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 18 Jan 2003 19:57:25 +0000 Subject: [PATCH] Changed php_error to php_error_docref. --- ext/swf/swf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/swf/swf.c b/ext/swf/swf.c index 828a1cf1bd..8c10df882f 100644 --- a/ext/swf/swf.c +++ b/ext/swf/swf.c @@ -263,7 +263,7 @@ PHP_FUNCTION(swf_closefile) int b; if ((f = VCWD_FOPEN(SWFG(tmpfile_name), "r")) == NULL) { - php_error(E_WARNING, "Cannot create temporary file for stdout support with SWF"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create temporary file for stdout support with SWF"); RETURN_NULL(); } @@ -606,8 +606,8 @@ PHP_FUNCTION(swf_definepoly) convert_to_double_ex(width); if (Z_TYPE_PP(coordinates) != IS_ARRAY) { - return; - php_error(E_WARNING, "Wrong datatype of second argument to swf_definepoly"); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Wrong datatype of second argument to swf_definepoly"); + RETURN_FALSE; } npoints = Z_LVAL_PP(NumPoints); -- 2.50.1