summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-25 21:51:49 +0200
committerAnatol Belski <ab@php.net>2014-08-25 21:51:49 +0200
commitaf59e92b24c8f624672720d47ef65bd8457728b9 (patch)
tree1da992a4689783e1351760a8702cbf6844ad37aa /ext/ldap/ldap.c
parentb9514bb8fd27e2d841bab3eb256fcbaa613aa049 (diff)
downloadphp-git-af59e92b24c8f624672720d47ef65bd8457728b9.tar.gz
master renames phase 7PRE_AST_MERGE
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index b029a83f63..92b7f3f8c4 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -2039,7 +2039,7 @@ PHP_FUNCTION(ldap_set_option)
{
int val;
- convert_to_int_ex(newval);
+ convert_to_long_ex(newval);
val = Z_LVAL_P(newval);
if (ldap_set_option(ldap, option, &val)) {
RETURN_FALSE;
@@ -2050,7 +2050,7 @@ PHP_FUNCTION(ldap_set_option)
{
struct timeval timeout;
- convert_to_int_ex(newval);
+ convert_to_long_ex(newval);
timeout.tv_sec = Z_LVAL_P(newval);
timeout.tv_usec = 0;
if (ldap_set_option(ldap, LDAP_OPT_NETWORK_TIMEOUT, (void *) &timeout)) {
@@ -2062,7 +2062,7 @@ PHP_FUNCTION(ldap_set_option)
{
int timeout;
- convert_to_int_ex(newval);
+ convert_to_long_ex(newval);
timeout = 1000 * Z_LVAL_P(newval); /* Convert to milliseconds */
if (ldap_set_option(ldap, LDAP_X_OPT_CONNECT_TIMEOUT, &timeout)) {
RETURN_FALSE;
@@ -2424,7 +2424,7 @@ int _ldap_rebind_proc(LDAP *ldap, const char *url, ber_tag_t req, ber_int_t msgi
ZVAL_COPY_VALUE(&cb_args[0], cb_link);
ZVAL_STRING(&cb_args[1], url);
if (call_user_function_ex(EG(function_table), NULL, &ld->rebindproc, &cb_retval, 2, cb_args, 0, NULL TSRMLS_CC) == SUCCESS && !Z_ISUNDEF(cb_retval)) {
- convert_to_int_ex(&cb_retval);
+ convert_to_long_ex(&cb_retval);
retval = Z_LVAL(cb_retval);
zval_ptr_dtor(&cb_retval);
} else {