diff options
author | Felipe Pena <felipe@php.net> | 2010-09-08 01:46:23 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-09-08 01:46:23 +0000 |
commit | 7f9527bb220a8350432a2aa7018d5f14b5a7c2c1 (patch) | |
tree | fc1413b0ef6ee4755cd20fd640b7c6e95879a5b2 /ext/ldap/ldap.c | |
parent | a7e18ea855f08b2200830c70451a7dde367f557f (diff) | |
download | php-git-7f9527bb220a8350432a2aa7018d5f14b5a7c2c1.tar.gz |
- Fixed wrong type
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r-- | ext/ldap/ldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 3f2375c258..1edd73a6b0 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -2190,8 +2190,8 @@ PHP_FUNCTION(ldap_8859_to_t61) Inject paged results control*/ PHP_FUNCTION(ldap_ctrl_paged_results) { - int pagesize; - int iscritical; + long pagesize; + zend_bool iscritical; zval *link, *cookie; struct berval lcookie = { 0, NULL }; ldap_linkdata *ld; @@ -2226,11 +2226,11 @@ PHP_FUNCTION(ldap_ctrl_paged_results) lcookie.bv_len = Z_STRLEN_PP(&cookie); /* fallthru */ case 3: - ctrl.ldctl_iscritical = iscritical; + ctrl.ldctl_iscritical = (int)iscritical; /* fallthru */ } - if (ber_printf(ber, "{iO}", pagesize, &lcookie) == LBER_ERROR) { + if (ber_printf(ber, "{iO}", (int)pagesize, &lcookie) == LBER_ERROR) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to BER printf paged results control"); RETVAL_BOOL(0); goto lcpr_error_out; |