iliaa Sat Jan 18 14:57:25 2003 EDT Modified files: /php4/ext/swf swf.c Log: Changed php_error to php_error_docref. Index: php4/ext/swf/swf.c diff -u php4/ext/swf/swf.c:1.48 php4/ext/swf/swf.c:1.49 --- php4/ext/swf/swf.c:1.48 Fri Jan 17 11:33:01 2003 +++ php4/ext/swf/swf.c Sat Jan 18 14:57:25 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: swf.c,v 1.48 2003/01/17 16:33:01 andrey Exp $ */ +/* $Id: swf.c,v 1.49 2003/01/18 19:57:25 iliaa Exp $ */ #ifdef HAVE_CONFIG_H @@ -263,7 +263,7 @@ 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 @@ 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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php