diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:57:25 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-18 19:57:25 +0000 |
commit | 60af5507a5586b8b476e85f92a87d4f8c48d399b (patch) | |
tree | b9d3e4812bb158fe20fa60b91ca9ed218b2a6ab6 | |
parent | 1ae3c0e66e39eae16057661d4388795c763e8577 (diff) | |
download | php-git-60af5507a5586b8b476e85f92a87d4f8c48d399b.tar.gz |
Changed php_error to php_error_docref.
-rw-r--r-- | ext/swf/swf.c | 6 |
1 files 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); |