summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>1999-12-14 22:15:55 +0000
committerAndrei Zmievski <andrei@php.net>1999-12-14 22:15:55 +0000
commit1be7a8d46128df114d877f1acac66638f6891461 (patch)
tree5c53aa5dc5efb3ae27795a1bed17c68204dffedf /ext/standard
parent88892c6792de7430381045a5b1af7efa7a0449c4 (diff)
downloadphp-git-1be7a8d46128df114d877f1acac66638f6891461.tar.gz
Moved function_exists() to Zend library.
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/basic_functions.c31
-rw-r--r--ext/standard/basic_functions.h2
2 files changed, 0 insertions, 33 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 0f96155a3f..d92fbac3c5 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -304,8 +304,6 @@ function_entry basic_functions[] = {
PHP_NAMED_FE(header, PHP_FN(Header), NULL)
PHP_FE(headers_sent, NULL)
- PHP_FE(function_exists, NULL)
-
PHP_FE(connection_aborted, NULL)
PHP_FE(connection_timeout, NULL)
PHP_FE(connection_status, NULL)
@@ -1407,35 +1405,6 @@ PHP_FUNCTION(ignore_user_abort)
}
/* }}} */
-/* {{{ proto bool function_exists(string function_name)
- Checks if a given function has been defined */
-PHP_FUNCTION(function_exists)
-{
- pval **fname;
- pval *tmp;
- char *lcname;
- CLS_FETCH();
-
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &fname)==FAILURE) {
- WRONG_PARAM_COUNT;
- }
- convert_to_string_ex(fname);
-
- lcname = estrdup((*fname)->value.str.val);
- zend_str_tolower(lcname, (*fname)->value.str.len);
- if (zend_hash_find(CG(function_table), lcname,
- (*fname)->value.str.len+1, (void**)&tmp) == FAILURE) {
- efree(lcname);
- RETURN_FALSE;
- } else {
- efree(lcname);
- RETURN_TRUE;
- }
-}
-
-/* }}} */
-
-
/* {{{ proto int getservbyname(string service, string protocol)
Returns port associated with service. protocol must be "tcp" or "udp". */
PHP_FUNCTION(getservbyname)
diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h
index 7ffe3371e8..188f9ffc54 100644
--- a/ext/standard/basic_functions.h
+++ b/ext/standard/basic_functions.h
@@ -98,8 +98,6 @@ PHP_FUNCTION(connection_timeout);
PHP_FUNCTION(connection_status);
PHP_FUNCTION(ignore_user_abort);
-PHP_FUNCTION(function_exists);
-
PHP_FUNCTION(getservbyname);
PHP_FUNCTION(getservbyport);
PHP_FUNCTION(getprotobyname);