summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2002-12-22 19:16:42 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2002-12-22 19:16:42 +0000
commit022e5db8ec2d5fcf7aa761a18cff591ed19d8ec5 (patch)
tree713ead4a4527921a9404091517948272ea46a59b
parenta29eb8c1d2456abc4f8533187135682ce9bbd6a1 (diff)
downloadphp-git-022e5db8ec2d5fcf7aa761a18cff591ed19d8ec5.tar.gz
MFH: php_error => php_error_docref
-rw-r--r--ext/ncurses/ncurses_functions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c
index 37c485ea76..27a490e622 100644
--- a/ext/ncurses/ncurses_functions.c
+++ b/ext/ncurses/ncurses_functions.c
@@ -75,7 +75,7 @@ PHP_FUNCTION(ncurses_color_set)
}
RETURN_LONG(color_set(pair,NULL));
#else
- php_error(E_WARNING,"%s not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s not supported in this build");
RETURN_FALSE;
#endif
}
@@ -320,7 +320,7 @@ PHP_FUNCTION(ncurses_start_color)
if (NCURSES_G(is_initialised)) {
RETURN_LONG(start_color());
} else {
- php_error(E_WARNING, "ncurses library is not initialised by ncurses_init().");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "ncurses library is not initialised by ncurses_init().");
RETURN_FALSE;
}
}
@@ -996,7 +996,7 @@ PHP_FUNCTION(ncurses_slk_color)
RETURN_LONG(slk_color(intarg));
#else
- php_error(E_WARNING,"%s not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s not supported in this build");
RETURN_FALSE;
#endif
}
@@ -1071,7 +1071,7 @@ PHP_FUNCTION(ncurses_use_extended_names)
RETURN_LONG(use_extended_names(intarg));
#else
- php_error(E_WARNING,"%s not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s not supported in this build");
RETURN_FALSE;
#endif
}
@@ -1606,7 +1606,7 @@ PHP_FUNCTION(ncurses_assume_default_colors)
RETURN_LONG(assume_default_colors(i1,i2));
#else
- php_error(E_WARNING,"%s not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s not supported in this build");
RETURN_FALSE;
#endif
}
@@ -1831,7 +1831,7 @@ PHP_FUNCTION(ncurses_ungetmouse)
}
if (Z_TYPE_PP(arg) != IS_ARRAY){
- php_error(E_WARNING, "ncurses_ungetmouse: expected mevent as array");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expected mevent as array");
RETURN_FALSE;
}
@@ -2018,7 +2018,7 @@ PHP_FUNCTION(ncurses_wcolor_set)
RETURN_LONG(wcolor_set(*win, Z_LVAL_PP(color_pair), 0));
#else
- php_error(E_WARNING,"%s not supported in this build");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING,"%s not supported in this build");
RETURN_FALSE;
#endif
}