summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2009-12-28 17:01:24 +0000
committerPierrick Charron <pierrick@php.net>2009-12-28 17:01:24 +0000
commit3554a274290f35a4cae389e31964e44c75a4091c (patch)
treec54c77e3695ee6a3b274fbedec3c6db90c90a228 /ext/tidy
parentec74871ad448f3b6c2384789de596354e2a601c4 (diff)
downloadphp-git-3554a274290f35a4cae389e31964e44c75a4091c.tar.gz
Set the tidyNode constructor private
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/php_tidy.h1
-rw-r--r--ext/tidy/tidy.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/tidy/php_tidy.h b/ext/tidy/php_tidy.h
index a351566870..14bf1a3bfe 100644
--- a/ext/tidy/php_tidy.h
+++ b/ext/tidy/php_tidy.h
@@ -28,6 +28,7 @@ extern zend_module_entry tidy_module_entry;
ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
#define TIDY_NODE_METHOD(name) PHP_FUNCTION(tnm_ ##name)
#define TIDY_NODE_ME(name, param) TIDY_METHOD_MAP(name, tnm_ ##name, param)
+#define TIDY_NODE_PRIVATE_ME(name, param) ZEND_NAMED_ME(name, ZEND_FN(tnm_ ##name), param, ZEND_ACC_PRIVATE)
#define TIDY_DOC_METHOD(name) PHP_FUNCTION(tdm_ ##name)
#define TIDY_DOC_ME(name, param) TIDY_METHOD_MAP(name, tdm_ ##name, param)
#define TIDY_ATTR_METHOD(name) PHP_FUNCTION(tam_ ##name)
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index af54054dca..0583fdea04 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -442,7 +442,7 @@ static const zend_function_entry tidy_funcs_node[] = {
TIDY_NODE_ME(isAsp, NULL)
TIDY_NODE_ME(isPhp, NULL)
TIDY_NODE_ME(getParent, NULL)
- TIDY_NODE_ME(__construct, NULL)
+ TIDY_NODE_PRIVATE_ME(__construct, NULL)
{NULL, NULL, NULL}
};