From: Ilia Alshanetsky Date: Sat, 18 Jan 2003 19:57:25 +0000 (+0000) Subject: Changed php_error to php_error_docref. X-Git-Tag: PHP_5_0_dev_before_13561_fix~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60af5507a5586b8b476e85f92a87d4f8c48d399b;p=php Changed php_error to php_error_docref. --- 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);