summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2011-07-14 18:49:12 +0000
committerScott MacVicar <scottmac@php.net>2011-07-14 18:49:12 +0000
commit4dbc1a57edfee44a7fab4f5cf850f86330a025de (patch)
tree997d4977256b402a32a94dfcb6263b799c1dbec3 /ext/ldap/ldap.c
parentecd9d194d034d01babb446dc431d6b766928e0bc (diff)
downloadphp-git-4dbc1a57edfee44a7fab4f5cf850f86330a025de.tar.gz
Fix prototypes for ldap_control_paged_result and fix function name in tests
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 0ecb5ddf75..790ef6bf54 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -2186,7 +2186,7 @@ PHP_FUNCTION(ldap_8859_to_t61)
#endif
#ifdef LDAP_CONTROL_PAGEDRESULTS
-/* {{{ proto bool ldap_control_paged_result(resource link, int pagesize [, bool iscritical [, string cookie]])
+/* {{{ proto mixed ldap_control_paged_result(resource link, int pagesize [, bool iscritical [, string cookie]])
Inject paged results control*/
PHP_FUNCTION(ldap_control_paged_result)
{
@@ -2278,7 +2278,7 @@ lcpr_error_out:
}
/* }}} */
-/* {{{ proto bool ldap_control_paged_result_response(resource link, resource result [, string cookie [, int estimated]])
+/* {{{ proto bool ldap_control_paged_result_response(resource link, resource result [, string &cookie [, int &estimated]])
Extract paged results control response */
PHP_FUNCTION(ldap_control_paged_result_response)
{
@@ -2292,7 +2292,6 @@ PHP_FUNCTION(ldap_control_paged_result_response)
ber_tag_t tag;
int rc, lerrcode, myargcount = ZEND_NUM_ARGS();
-
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|zz", &link, &result, &cookie, &estimated) != SUCCESS) {
return;
}