Lines Matching refs:array

139 static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array, int request)  in _php_ldap_control_to_array()  argument
141 array_init(array); in _php_ldap_control_to_array()
143 add_assoc_string(array, "oid", ctrl->ldctl_oid); in _php_ldap_control_to_array()
146 add_assoc_bool(array, "iscritical", (ctrl->ldctl_iscritical != 0)); in _php_ldap_control_to_array()
164 add_assoc_zval(array, "value", &value); in _php_ldap_control_to_array()
166 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
185 add_assoc_zval(array, "value", &value); in _php_ldap_control_to_array()
187 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
199 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
201 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
226 add_assoc_zval(array, "value", &value); in _php_ldap_control_to_array()
249 add_assoc_zval(array, "value", &value); in _php_ldap_control_to_array()
251 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
271 add_assoc_zval(array, "value", &value); in _php_ldap_control_to_array()
273 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
278 add_assoc_stringl(array, "value", ctrl->ldctl_value.bv_val, ctrl->ldctl_value.bv_len); in _php_ldap_control_to_array()
280 add_assoc_null(array, "value"); in _php_ldap_control_to_array()
285 static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* array) in _php_ldap_control_from_array() argument
295 if ((val = zend_hash_str_find(Z_ARRVAL_P(array), "oid", sizeof("oid") - 1)) == NULL) { in _php_ldap_control_from_array()
305 …if ((val = zend_hash_str_find(Z_ARRVAL_P(array), "iscritical", sizeof("iscritical") - 1)) != NULL)… in _php_ldap_control_from_array()
315 if ((val = zend_hash_str_find(Z_ARRVAL_P(array), "value", sizeof("value") - 1)) != NULL) { in _php_ldap_control_from_array()
626 static void _php_ldap_controls_to_array(LDAP *ld, LDAPControl** ctrls, zval* array, int request) in _php_ldap_controls_to_array() argument
631 array_init(array); in _php_ldap_controls_to_array()
638 add_assoc_zval(array, (*ctrlp)->ldctl_oid, &tmp1); in _php_ldap_controls_to_array()
644 static LDAPControl** _php_ldap_controls_from_array(LDAP *ld, zval* array) in _php_ldap_controls_from_array() argument
651 ncontrols = zend_hash_num_elements(Z_ARRVAL_P(array)); in _php_ldap_controls_from_array()
655 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(array), ctrlarray) { in _php_ldap_controls_from_array()