From 648d190d9addc8f16c9f5aaa1402081ef51e9cc4 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Mon, 22 Apr 2013 18:28:11 -0700 Subject: [PATCH] import zend ldap tests --- hphp/test/zend/bad/ext-ldap/bug48441.php | 28 +++ .../zend/bad/ext-ldap/bug48441.php.expectf | 127 ++++++++++++ hphp/test/zend/bad/ext-ldap/bug48696.php | 5 + .../zend/bad/ext-ldap/bug48696.php.expectf | 1 + .../test/zend/bad/ext-ldap/ldap_add_basic.php | 27 +++ .../bad/ext-ldap/ldap_add_basic.php.expectf | 44 +++++ .../test/zend/bad/ext-ldap/ldap_add_error.php | 87 +++++++++ .../bad/ext-ldap/ldap_add_error.php.expectf | 28 +++ .../zend/bad/ext-ldap/ldap_bind_basic.php | 8 + .../bad/ext-ldap/ldap_bind_basic.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_bind_error.php | 16 ++ .../bad/ext-ldap/ldap_bind_error.php.expectf | 7 + .../zend/bad/ext-ldap/ldap_bind_variation.php | 8 + .../ext-ldap/ldap_bind_variation.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_compare_basic.php | 16 ++ .../ext-ldap/ldap_compare_basic.php.expectf | 3 + .../zend/bad/ext-ldap/ldap_compare_error.php | 26 +++ .../ext-ldap/ldap_compare_error.php.expectf | 13 ++ .../ldap_control_paged_results_variation1.php | 20 ++ ...ntrol_paged_results_variation1.php.expectf | 23 +++ .../ldap_control_paged_results_variation2.php | 20 ++ ...ntrol_paged_results_variation2.php.expectf | 39 ++++ .../ldap_control_paged_results_variation3.php | 25 +++ ...ntrol_paged_results_variation3.php.expectf | 62 ++++++ .../bad/ext-ldap/ldap_count_entries_basic.php | 14 ++ .../ldap_count_entries_basic.php.expectf | 2 + .../bad/ext-ldap/ldap_count_entries_error.php | 8 + .../ldap_count_entries_error.php.expectf | 5 + .../zend/bad/ext-ldap/ldap_delete_basic.php | 25 +++ .../ext-ldap/ldap_delete_basic.php.expectf | 3 + .../zend/bad/ext-ldap/ldap_delete_error.php | 31 +++ .../ext-ldap/ldap_delete_error.php.expectf | 15 ++ .../zend/bad/ext-ldap/ldap_err2str_error.php | 10 + .../ext-ldap/ldap_err2str_error.php.expectf | 7 + .../zend/bad/ext-ldap/ldap_errno_basic.php | 18 ++ .../bad/ext-ldap/ldap_errno_basic.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_error_basic.php | 18 ++ .../bad/ext-ldap/ldap_error_basic.php.expectf | 2 + .../ext-ldap/ldap_first_attribute_basic.php | 17 ++ .../ldap_first_attribute_basic.php.expectf | 2 + .../ext-ldap/ldap_first_attribute_error.php | 8 + .../ldap_first_attribute_error.php.expectf | 5 + .../bad/ext-ldap/ldap_first_entry_basic.php | 17 ++ .../ldap_first_entry_basic.php.expectf | 8 + .../bad/ext-ldap/ldap_first_entry_error.php | 9 + .../ldap_first_entry_error.php.expectf | 7 + .../ext-ldap/ldap_first_reference_basic.php | 25 +++ .../ldap_first_reference_basic.php.expectf | 6 + .../ext-ldap/ldap_first_reference_error.php | 9 + .../ldap_first_reference_error.php.expectf | 7 + .../bad/ext-ldap/ldap_free_result_basic.php | 14 ++ .../ldap_free_result_basic.php.expectf | 2 + .../bad/ext-ldap/ldap_free_result_error.php | 8 + .../ldap_free_result_error.php.expectf | 5 + .../ext-ldap/ldap_get_attributes_basic.php | 17 ++ .../ldap_get_attributes_basic.php.expectf | 36 ++++ .../ext-ldap/ldap_get_attributes_error.php | 8 + .../ldap_get_attributes_error.php.expectf | 5 + .../zend/bad/ext-ldap/ldap_get_dn_basic.php | 17 ++ .../ext-ldap/ldap_get_dn_basic.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_get_dn_error.php | 8 + .../ext-ldap/ldap_get_dn_error.php.expectf | 5 + .../bad/ext-ldap/ldap_get_entries_basic.php | 19 ++ .../ldap_get_entries_basic.php.expectf | 43 ++++ .../bad/ext-ldap/ldap_get_entries_error.php | 15 ++ .../ldap_get_entries_error.php.expectf | 7 + .../ext-ldap/ldap_get_entries_variation.php | 19 ++ .../ldap_get_entries_variation.php.expectf | 5 + .../ext-ldap/ldap_get_option_variation.php | 40 ++++ .../ldap_get_option_variation.php.expectf | 17 ++ .../ext-ldap/ldap_get_values_len_basic.php | 17 ++ .../ldap_get_values_len_basic.php.expectf | 7 + .../ext-ldap/ldap_get_values_len_error.php | 21 ++ .../ldap_get_values_len_error.php.expectf | 9 + .../zend/bad/ext-ldap/ldap_list_basic.php | 16 ++ .../bad/ext-ldap/ldap_list_basic.php.expectf | 119 +++++++++++ .../zend/bad/ext-ldap/ldap_mod_add_basic.php | 25 +++ .../ext-ldap/ldap_mod_add_basic.php.expectf | 53 +++++ .../zend/bad/ext-ldap/ldap_mod_add_error.php | 47 +++++ .../ext-ldap/ldap_mod_add_error.php.expectf | 17 ++ .../zend/bad/ext-ldap/ldap_mod_del_basic.php | 25 +++ .../ext-ldap/ldap_mod_del_basic.php.expectf | 6 + .../zend/bad/ext-ldap/ldap_mod_del_error.php | 29 +++ .../ext-ldap/ldap_mod_del_error.php.expectf | 15 ++ .../bad/ext-ldap/ldap_mod_replace_basic.php | 25 +++ .../ldap_mod_replace_basic.php.expectf | 22 +++ .../bad/ext-ldap/ldap_mod_replace_error.php | 29 +++ .../ldap_mod_replace_error.php.expectf | 15 ++ .../zend/bad/ext-ldap/ldap_modify_basic.php | 31 +++ .../ext-ldap/ldap_modify_basic.php.expectf | 53 +++++ .../zend/bad/ext-ldap/ldap_modify_error.php | 47 +++++ .../ext-ldap/ldap_modify_error.php.expectf | 17 ++ .../ext-ldap/ldap_next_attribute_basic.php | 20 ++ .../ldap_next_attribute_basic.php.expectf | 4 + .../ext-ldap/ldap_next_attribute_error.php | 19 ++ .../ldap_next_attribute_error.php.expectf | 7 + .../bad/ext-ldap/ldap_next_entry_basic.php | 19 ++ .../ldap_next_entry_basic.php.expectf | 9 + .../bad/ext-ldap/ldap_next_entry_error.php | 9 + .../ldap_next_entry_error.php.expectf | 7 + .../ext-ldap/ldap_next_reference_basic.php | 31 +++ .../ldap_next_reference_basic.php.expectf | 6 + .../ext-ldap/ldap_next_reference_error.php | 9 + .../ldap_next_reference_error.php.expectf | 7 + .../ext-ldap/ldap_parse_reference_basic.php | 27 +++ .../ldap_parse_reference_basic.php.expectf | 6 + .../ext-ldap/ldap_parse_reference_error.php | 12 ++ .../ldap_parse_reference_error.php.expectf | 8 + .../bad/ext-ldap/ldap_parse_result_basic.php | 26 +++ .../ldap_parse_result_basic.php.expectf | 9 + .../zend/bad/ext-ldap/ldap_read_basic.php | 16 ++ .../bad/ext-ldap/ldap_read_basic.php.expectf | 44 +++++ .../zend/bad/ext-ldap/ldap_rename_basic.php | 19 ++ .../ext-ldap/ldap_rename_basic.php.expectf | 31 +++ .../bad/ext-ldap/ldap_sasl_bind_basic.php | 8 + .../ext-ldap/ldap_sasl_bind_basic.php.expectf | 2 + .../bad/ext-ldap/ldap_sasl_bind_error.php | 24 +++ .../ext-ldap/ldap_sasl_bind_error.php.expectf | 13 ++ .../zend/bad/ext-ldap/ldap_search_basic.php | 17 ++ .../ext-ldap/ldap_search_basic.php.expectf | 162 +++++++++++++++ .../zend/bad/ext-ldap/ldap_search_error.php | 30 +++ .../ext-ldap/ldap_search_error.php.expectf | 15 ++ .../bad/ext-ldap/ldap_search_variation1.php | 19 ++ .../ldap_search_variation1.php.expectf | 22 +++ .../bad/ext-ldap/ldap_search_variation2.php | 17 ++ .../ldap_search_variation2.php.expectf | 48 +++++ .../bad/ext-ldap/ldap_search_variation3.php | 24 +++ .../ldap_search_variation3.php.expectf | 68 +++++++ .../bad/ext-ldap/ldap_search_variation4.php | 19 ++ .../ldap_search_variation4.php.expectf | 21 ++ .../bad/ext-ldap/ldap_search_variation5.php | 27 +++ .../ldap_search_variation5.php.expectf | 61 ++++++ .../bad/ext-ldap/ldap_search_variation6.php | 31 +++ .../ldap_search_variation6.php.expectf | 184 ++++++++++++++++++ .../ext-ldap/ldap_set_option_variation.php | 56 ++++++ .../ldap_set_option_variation.php.expectf | 19 ++ .../ext-ldap/ldap_set_rebind_proc_basic.php | 21 ++ .../ldap_set_rebind_proc_basic.php.expectf | 3 + .../ext-ldap/ldap_set_rebind_proc_error.php | 22 +++ .../ldap_set_rebind_proc_error.php.expectf | 7 + .../zend/bad/ext-ldap/ldap_sort_basic.php | 41 ++++ .../bad/ext-ldap/ldap_sort_basic.php.expectf | 147 ++++++++++++++ .../zend/bad/ext-ldap/ldap_sort_error.php | 11 ++ .../bad/ext-ldap/ldap_sort_error.php.expectf | 11 ++ .../zend/bad/ext-ldap/ldap_sort_variation.php | 41 ++++ .../ext-ldap/ldap_sort_variation.php.expectf | 147 ++++++++++++++ .../bad/ext-ldap/ldap_start_tls_basic.php | 8 + .../ext-ldap/ldap_start_tls_basic.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_unbind_basic.php | 8 + .../ext-ldap/ldap_unbind_basic.php.expectf | 2 + .../zend/bad/ext-ldap/ldap_unbind_error.php | 19 ++ .../ext-ldap/ldap_unbind_error.php.expectf | 10 + .../bad/ext-ldap/ldap_unbind_variation.php | 22 +++ .../ldap_unbind_variation.php.expectf | 2 + hphp/test/zend/good/ext-ldap/connect.inc | 61 ++++++ .../zend/good/ext-ldap/ldap_connect_basic.php | 7 + .../ext-ldap/ldap_connect_basic.php.expectf | 2 + .../good/ext-ldap/ldap_connect_variation.php | 24 +++ .../ldap_connect_variation.php.expectf | 6 + hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php | 20 ++ .../good/ext-ldap/ldap_dn2ufn.php.expectf | 6 + .../zend/good/ext-ldap/ldap_err2str_basic.php | 4 + .../ext-ldap/ldap_err2str_basic.php.expectf | 2 + .../zend/good/ext-ldap/ldap_errno_error.php | 8 + .../ext-ldap/ldap_errno_error.php.expectf | 5 + .../zend/good/ext-ldap/ldap_error_error.php | 8 + .../ext-ldap/ldap_error_error.php.expectf | 5 + .../zend/good/ext-ldap/ldap_explode_dn.php | 35 ++++ .../good/ext-ldap/ldap_explode_dn.php.expectf | 51 +++++ .../good/ext-ldap/ldap_get_option_basic.php | 13 ++ .../ldap_get_option_basic.php.expectf | 3 + .../good/ext-ldap/ldap_get_option_error.php | 18 ++ .../ldap_get_option_error.php.expectf | 10 + .../zend/good/ext-ldap/ldap_list_error.php | 14 ++ .../good/ext-ldap/ldap_list_error.php.expectf | 9 + .../good/ext-ldap/ldap_parse_result_error.php | 5 + .../ldap_parse_result_error.php.expectf | 3 + .../zend/good/ext-ldap/ldap_read_error.php | 14 ++ .../good/ext-ldap/ldap_read_error.php.expectf | 9 + .../zend/good/ext-ldap/ldap_rename_error.php | 8 + .../ext-ldap/ldap_rename_error.php.expectf | 4 + .../good/ext-ldap/ldap_set_option_basic.php | 11 ++ .../ldap_set_option_basic.php.expectf | 3 + .../good/ext-ldap/ldap_set_option_error.php | 34 ++++ .../ldap_set_option_error.php.expectf | 17 ++ .../good/ext-ldap/ldap_start_tls_error.php | 11 ++ .../ext-ldap/ldap_start_tls_error.php.expectf | 5 + hphp/tools/import_zend_test.py | 2 +- 188 files changed, 4046 insertions(+), 1 deletion(-) create mode 100644 hphp/test/zend/bad/ext-ldap/bug48441.php create mode 100644 hphp/test/zend/bad/ext-ldap/bug48441.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/bug48696.php create mode 100644 hphp/test/zend/bad/ext-ldap/bug48696.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_add_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_add_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_add_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_add_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_compare_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_compare_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_delete_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_delete_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_error_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_error_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_list_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_list_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_modify_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_modify_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_read_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_read_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php.expectf create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php create mode 100644 hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/connect.inc create mode 100644 hphp/test/zend/good/ext-ldap/ldap_connect_basic.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_connect_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_connect_variation.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_connect_variation.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_errno_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_errno_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_error_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_error_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_explode_dn.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_explode_dn.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_get_option_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_get_option_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_list_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_list_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_read_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_read_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_rename_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_rename_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_set_option_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_set_option_error.php.expectf create mode 100644 hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php create mode 100644 hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php.expectf diff --git a/hphp/test/zend/bad/ext-ldap/bug48441.php b/hphp/test/zend/bad/ext-ldap/bug48441.php new file mode 100644 index 000000000..926194c7d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/bug48441.php @@ -0,0 +1,28 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/bug48441.php.expectf b/hphp/test/zend/bad/ext-ldap/bug48441.php.expectf new file mode 100644 index 000000000..945cf3fef --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/bug48441.php.expectf @@ -0,0 +1,127 @@ +resource(%d) of type (ldap result) +array(4) { + ["count"]=> + int(3) + [0]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +resource(%d) of type (ldap result) +array(4) { + ["count"]=> + int(3) + [0]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/bug48696.php b/hphp/test/zend/bad/ext-ldap/bug48696.php new file mode 100644 index 000000000..bceb84bef --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/bug48696.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/bug48696.php.expectf b/hphp/test/zend/bad/ext-ldap/bug48696.php.expectf new file mode 100644 index 000000000..cfb6a8593 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/bug48696.php.expectf @@ -0,0 +1 @@ +HipHop Warning: %a \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php new file mode 100644 index 000000000..f641d41f1 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php @@ -0,0 +1,27 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", + )), + ldap_get_entries( + $link, + ldap_search($link, "dc=my-domain,dc=com", "(o=my-domain)") + ) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php.expectf new file mode 100644 index 000000000..a42b503a1 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_add_basic.php.expectf @@ -0,0 +1,44 @@ +bool(true) +array(2) { + ["count"]=> + int(1) + [0]=> + array(8) { + ["objectclass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectclass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["count"]=> + int(3) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_add_error.php b/hphp/test/zend/bad/ext-ldap/ldap_add_error.php new file mode 100644 index 000000000..935e9df10 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_add_error.php @@ -0,0 +1,87 @@ + "val", + )), + ldap_error($link), + ldap_errno($link) +); + +// Duplicate entry +for ($i = 0; $i < 2; $i++) + var_dump( + ldap_add($link, "dc=my-domain,dc=com", array( + "objectClass" => array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", + )) + ); +var_dump(ldap_error($link), ldap_errno($link)); + +// Wrong array indexes +var_dump( + ldap_add($link, "dc=my-domain2,dc=com", array( + "objectClass" => array( + 0 => "top", + 2 => "dcObject", + 5 => "organization"), + "dc" => "my-domain", + "o" => "my-domain", + )) + /* Is this correct behaviour to still have "Already exists" as error/errno? + , + ldap_error($link), + ldap_errno($link) + */ +); + +// Invalid attribute +var_dump( + ldap_add($link, "dc=my-domain,dc=com", array( + "objectClass" => array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", + "weirdAttr" => "weirdVal", + )), + ldap_error($link), + ldap_errno($link) +); + +var_dump( + ldap_add($link, "dc=my-domain,dc=com", array(array( "Oops" + ))) + /* Is this correct behaviour to still have "Undefined attribute type" as error/errno? + , + ldap_error($link), + ldap_errno($link) + */ +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_add_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_add_error.php.expectf new file mode 100644 index 000000000..d672a2294 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_add_error.php.expectf @@ -0,0 +1,28 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +string(17) "Invalid DN syntax" +int(34) +bool(true) +HipHop Warning: %a +bool(false) +string(14) "Already exists" +int(68) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +string(24) "Undefined attribute type" +int(17) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php new file mode 100644 index 000000000..352a35235 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_basic.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php b/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php new file mode 100644 index 000000000..02f6d49b8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php @@ -0,0 +1,16 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php.expectf new file mode 100644 index 000000000..4e6c56d42 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php new file mode 100644 index 000000000..eb6215584 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_bind_variation.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php new file mode 100644 index 000000000..9b28df094 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php @@ -0,0 +1,16 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php.expectf new file mode 100644 index 000000000..3b8a15ebb --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_compare_basic.php.expectf @@ -0,0 +1,3 @@ +bool(true) +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php b/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php new file mode 100644 index 000000000..128bb1bc9 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php @@ -0,0 +1,26 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php.expectf new file mode 100644 index 000000000..e02470e42 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_compare_error.php.expectf @@ -0,0 +1,13 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +int(-1) +string(14) "No such object" +int(32) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php new file mode 100644 index 000000000..ba7b8c65f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php @@ -0,0 +1,20 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php.expectf new file mode 100644 index 000000000..ae974b363 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation1.php.expectf @@ -0,0 +1,23 @@ +bool(true) +resource(6) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php new file mode 100644 index 000000000..db537a965 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php @@ -0,0 +1,20 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php.expectf new file mode 100644 index 000000000..02895bc5a --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation2.php.expectf @@ -0,0 +1,39 @@ +bool(true) +resource(6) of type (ldap result) +array(3) { + ["count"]=> + int(2) + [0]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userB" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php new file mode 100644 index 000000000..a72b09b98 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php @@ -0,0 +1,25 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php.expectf new file mode 100644 index 000000000..2ab3ce0aa --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_control_paged_results_variation3.php.expectf @@ -0,0 +1,62 @@ +bool(true) +resource(%d) of type (ldap result) +array(3) { + ["count"]=> + int(2) + [0]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userB" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } +} +bool(true) +bool(true) +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userC" + } + [0]=> + string(2) "cn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php new file mode 100644 index 000000000..a94a906db --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php @@ -0,0 +1,14 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php.expectf new file mode 100644 index 000000000..24c0118f7 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_basic.php.expectf @@ -0,0 +1,2 @@ +int(3) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php new file mode 100644 index 000000000..7db352286 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php.expectf new file mode 100644 index 000000000..69d5afaba --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_count_entries_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php new file mode 100644 index 000000000..bf67883d1 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php @@ -0,0 +1,25 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", +)); + +var_dump( + ldap_delete($link, "dc=my-domain,dc=com"), + @ldap_search($link, "dc=my-domain,dc=com", "(o=my-domain)") +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php.expectf new file mode 100644 index 000000000..3b8a15ebb --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_delete_basic.php.expectf @@ -0,0 +1,3 @@ +bool(true) +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php b/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php new file mode 100644 index 000000000..b4b250bea --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php @@ -0,0 +1,31 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php.expectf new file mode 100644 index 000000000..2550d5af9 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_delete_error.php.expectf @@ -0,0 +1,15 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +string(17) "Invalid DN syntax" +int(34) +HipHop Warning: %a +bool(false) +string(14) "No such object" +int(32) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php b/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php new file mode 100644 index 000000000..7ef134086 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php @@ -0,0 +1,10 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php.expectf new file mode 100644 index 000000000..605c63c50 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_err2str_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php new file mode 100644 index 000000000..286ab30d0 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php @@ -0,0 +1,18 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", +)); + +var_dump( + ldap_errno($link) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php.expectf new file mode 100644 index 000000000..bb70fb9e8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_errno_basic.php.expectf @@ -0,0 +1,2 @@ +int(34) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php new file mode 100644 index 000000000..7f1864344 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php @@ -0,0 +1,18 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", +)); + +var_dump( + ldap_error($link) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php.expectf new file mode 100644 index 000000000..9c811e32c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_error_basic.php.expectf @@ -0,0 +1,2 @@ +string(17) "Invalid DN syntax" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php new file mode 100644 index 000000000..a627f6413 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php.expectf new file mode 100644 index 000000000..6ce1415a4 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_basic.php.expectf @@ -0,0 +1,2 @@ +string(11) "objectClass" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php new file mode 100644 index 000000000..10e78e335 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php.expectf new file mode 100644 index 000000000..69d5afaba --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_attribute_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php new file mode 100644 index 000000000..cf36e0c89 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php.expectf new file mode 100644 index 000000000..1af5b3e6e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_basic.php.expectf @@ -0,0 +1,8 @@ +resource(%d) of type (ldap result entry) +array(2) { + [0]=> + string(7) "testSN%d" + ["count"]=> + int(1) +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php new file mode 100644 index 000000000..3942d5b54 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php @@ -0,0 +1,9 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php.expectf new file mode 100644 index 000000000..a7f4b7d1d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_entry_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php new file mode 100644 index 000000000..2eb47cc61 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php @@ -0,0 +1,25 @@ + array("extensibleObject", "referral"), + "cn" => "userref", + "ref" => "cn=userA,dc=my-domain,dc=com", +)); +ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); +$result = ldap_search($link, "dc=my-domain,dc=com", "(cn=*)"); +var_dump($ref = ldap_first_reference($link, $result)); +$refs = null; +ldap_parse_reference($link, $ref, $refs); +var_dump($refs); +?> +===DONE=== "2.16.840.1.113730.3.4.2"))); +ldap_delete($link, "cn=userref,dc=my-domain,dc=com"); +remove_dummy_data($link); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php.expectf new file mode 100644 index 000000000..5c9b4c545 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_basic.php.expectf @@ -0,0 +1,6 @@ +resource(%d) of type (ldap result entry) +array(1) { + [0]=> + string(28) "cn=userA,dc=my-domain,dc=com" +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php new file mode 100644 index 000000000..339e08667 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php @@ -0,0 +1,9 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php.expectf new file mode 100644 index 000000000..a7f4b7d1d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_first_reference_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php new file mode 100644 index 000000000..4ffca4f97 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php @@ -0,0 +1,14 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_free_result_basic.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php b/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php new file mode 100644 index 000000000..0f8950c2e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php.expectf new file mode 100644 index 000000000..cd7d158df --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_free_result_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php new file mode 100644 index 000000000..3927b3fb5 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php.expectf new file mode 100644 index 000000000..17527207d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_basic.php.expectf @@ -0,0 +1,36 @@ +array(7) { + ["objectClass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectClass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["count"]=> + int(3) +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php new file mode 100644 index 000000000..0ef8dd409 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php.expectf new file mode 100644 index 000000000..69d5afaba --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_attributes_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php new file mode 100644 index 000000000..dfb2dc1d4 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php.expectf new file mode 100644 index 000000000..a8bcd15d8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_basic.php.expectf @@ -0,0 +1,2 @@ +string(19) "dc=my-domain,dc=com" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php new file mode 100644 index 000000000..8a365085b --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php.expectf new file mode 100644 index 000000000..69d5afaba --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_dn_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php new file mode 100644 index 000000000..fb0e3993f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php.expectf new file mode 100644 index 000000000..12b73a799 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_basic.php.expectf @@ -0,0 +1,43 @@ +array(2) { + ["count"]=> + int(1) + [0]=> + array(8) { + ["objectclass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectclass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["count"]=> + int(3) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php new file mode 100644 index 000000000..c2c9e69d5 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php @@ -0,0 +1,15 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php.expectf new file mode 100644 index 000000000..605c63c50 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php new file mode 100644 index 000000000..dcd9ddf8a --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php.expectf new file mode 100644 index 000000000..adbc3435e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_entries_variation.php.expectf @@ -0,0 +1,5 @@ +array(1) { + ["count"]=> + int(0) +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php new file mode 100644 index 000000000..4b73e2083 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php @@ -0,0 +1,40 @@ + "1.2.752.58.10.1", "iscritical" => true), + array("oid" => "1.2.752.58.1.10", "value" => "magic"), +); + +ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); +ldap_set_option($link, LDAP_OPT_SIZELIMIT, 123); +ldap_set_option($link, LDAP_OPT_TIMELIMIT, 33); +ldap_set_option($link, LDAP_OPT_NETWORK_TIMEOUT, 44); +ldap_set_option($link, LDAP_OPT_REFERRALS, false); +ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, $controls); +ldap_set_option($link, LDAP_OPT_CLIENT_CONTROLS, $controls); +ldap_set_option($link, LDAP_OPT_RESTART, false); + +var_dump( + ldap_get_option($link, LDAP_OPT_DEREF, $option), + $option, + ldap_get_option($link, LDAP_OPT_SIZELIMIT, $option), + $option, + ldap_get_option($link, LDAP_OPT_TIMELIMIT, $option), + $option, + ldap_get_option($link, LDAP_OPT_NETWORK_TIMEOUT, $option), + $option, + ldap_get_option($link, LDAP_OPT_REFERRALS, $option), + $option, + ldap_get_option($link, LDAP_OPT_RESTART, $option), + $option, + ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $option), + $option, + ldap_get_option($link, LDAP_OPT_CLIENT_CONTROLS, $option), + $option +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php.expectf new file mode 100644 index 000000000..c1d32733e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_option_variation.php.expectf @@ -0,0 +1,17 @@ +bool(true) +int(0) +bool(true) +int(123) +bool(true) +int(33) +bool(true) +int(44) +bool(true) +int(0) +bool(true) +int(0) +bool(false) +int(0) +bool(false) +int(0) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php new file mode 100644 index 000000000..3b2b290cc --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php.expectf new file mode 100644 index 000000000..14cdef922 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_basic.php.expectf @@ -0,0 +1,7 @@ +array(2) { + [0]=> + string(9) "my-domain" + ["count"]=> + int(1) +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php new file mode 100644 index 000000000..896a93279 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php @@ -0,0 +1,21 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php.expectf new file mode 100644 index 000000000..8790a868c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_get_values_len_error.php.expectf @@ -0,0 +1,9 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php new file mode 100644 index 000000000..e6712add0 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php @@ -0,0 +1,16 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php.expectf new file mode 100644 index 000000000..d51528e17 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_list_basic.php.expectf @@ -0,0 +1,119 @@ +resource(%d) of type (ldap result) +array(3) { + ["count"]=> + int(2) + [0]=> + array(14) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(4) "oops" + } + [3]=> + string(12) "userpassword" + ["telephonenumber"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(14) "xx-xx-xx-xx-xx" + } + [4]=> + string(15) "telephonenumber" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user A" + } + [5]=> + string(11) "description" + ["count"]=> + int(6) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(12) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userB" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(15) "oopsIDitItAgain" + } + [3]=> + string(12) "userpassword" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user B" + } + [4]=> + string(11) "description" + ["count"]=> + int(5) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php new file mode 100644 index 000000000..e4f1033f3 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php @@ -0,0 +1,25 @@ + "Domain description", +); + +var_dump( + ldap_mod_add($link, "dc=my-domain,dc=com", $entry), + ldap_get_entries( + $link, + ldap_search($link, "dc=my-domain,dc=com", "(Description=Domain description)") + ) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php.expectf new file mode 100644 index 000000000..6fb47f1ee --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_basic.php.expectf @@ -0,0 +1,53 @@ +bool(true) +array(2) { + ["count"]=> + int(1) + [0]=> + array(10) { + ["objectclass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectclass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(18) "Domain description" + } + [3]=> + string(11) "description" + ["count"]=> + int(4) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php new file mode 100644 index 000000000..aa06bd128 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php @@ -0,0 +1,47 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", +); + +ldap_add($link, "dc=my-domain,dc=com", $entry); + +$entry2 = $entry; +$entry2["dc"] = "Wrong Domain"; + +var_dump(ldap_mod_add($link, "dc=my-domain,dc=com", $entry2)); + +$entry2 = $entry; +$entry2["weirdAttribute"] = "weirdVal"; + +var_dump(ldap_mod_add($link, "dc=my-domain,dc=com", $entry2)); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php.expectf new file mode 100644 index 000000000..a5445133f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_add_error.php.expectf @@ -0,0 +1,17 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php new file mode 100644 index 000000000..1da180d6f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php @@ -0,0 +1,25 @@ + "user A" +); + +var_dump( + ldap_mod_del($link, "cn=userA,dc=my-domain,dc=com", $entry), + ldap_get_entries( + $link, + ldap_search($link, "dc=my-domain,dc=com", "(description=user A)") + ) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php.expectf new file mode 100644 index 000000000..62e7779b7 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_basic.php.expectf @@ -0,0 +1,6 @@ +bool(true) +array(1) { + ["count"]=> + int(0) +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php new file mode 100644 index 000000000..008ba5287 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php @@ -0,0 +1,29 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php.expectf new file mode 100644 index 000000000..f400fa56d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_del_error.php.expectf @@ -0,0 +1,15 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php new file mode 100644 index 000000000..f4624b9b8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php @@ -0,0 +1,25 @@ + "user X" +); + +var_dump( + ldap_mod_replace($link, "cn=userA,dc=my-domain,dc=com", $entry), + ldap_get_entries( + $link, + ldap_search($link, "dc=my-domain,dc=com", "(description=user X)", array("description")) + ) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php.expectf new file mode 100644 index 000000000..8e4d4439c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_basic.php.expectf @@ -0,0 +1,22 @@ +bool(true) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user X" + } + [0]=> + string(11) "description" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php new file mode 100644 index 000000000..991d6d672 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php @@ -0,0 +1,29 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php.expectf new file mode 100644 index 000000000..f400fa56d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_mod_replace_error.php.expectf @@ -0,0 +1,15 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php new file mode 100644 index 000000000..a0661e3d3 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php @@ -0,0 +1,31 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", + "description" => "Domain description", +); + +var_dump( + ldap_modify($link, "dc=my-domain,dc=com", $entry), + ldap_get_entries( + $link, + ldap_search($link, "dc=my-domain,dc=com", "(Description=Domain description)") + ) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php.expectf new file mode 100644 index 000000000..6fb47f1ee --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_modify_basic.php.expectf @@ -0,0 +1,53 @@ +bool(true) +array(2) { + ["count"]=> + int(1) + [0]=> + array(10) { + ["objectclass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectclass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(18) "Domain description" + } + [3]=> + string(11) "description" + ["count"]=> + int(4) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php b/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php new file mode 100644 index 000000000..65019e7a3 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php @@ -0,0 +1,47 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", +); + +ldap_add($link, "dc=my-domain,dc=com", $entry); + +$entry2 = $entry; +$entry2["dc"] = "Wrong Domain"; + +var_dump(ldap_modify($link, "dc=my-domain,dc=com", $entry2)); + +$entry2 = $entry; +$entry2["weirdAttribute"] = "weirdVal"; + +var_dump(ldap_modify($link, "dc=my-domain,dc=com", $entry2)); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php.expectf new file mode 100644 index 000000000..a5445133f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_modify_error.php.expectf @@ -0,0 +1,17 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php new file mode 100644 index 000000000..302bb7a34 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php @@ -0,0 +1,20 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php.expectf new file mode 100644 index 000000000..4ebfb6963 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_basic.php.expectf @@ -0,0 +1,4 @@ +string(%d) "%s" +string(%d) "%s" +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php new file mode 100644 index 000000000..332cae374 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php.expectf new file mode 100644 index 000000000..a7c1ab102 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_attribute_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +NULL +bool(false) +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php new file mode 100644 index 000000000..bf7b791c8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php.expectf new file mode 100644 index 000000000..71ba32b1d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_basic.php.expectf @@ -0,0 +1,9 @@ +resource(%d) of type (ldap result entry) +array(2) { + [0]=> + string(7) "testSN%d" + ["count"]=> + int(1) +} +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php new file mode 100644 index 000000000..b6fe3153f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php @@ -0,0 +1,9 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php.expectf new file mode 100644 index 000000000..a7f4b7d1d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_entry_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php new file mode 100644 index 000000000..b27285d1f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php @@ -0,0 +1,31 @@ + array("extensibleObject", "referral"), + "cn" => "userref", + "ref" => "cn=userA,dc=my-domain,dc=com", +)); +ldap_add($link, "cn=userref2,dc=my-domain,dc=com", array( + "objectClass" => array("extensibleObject", "referral"), + "cn" => "userref2", + "ref" => "cn=userB,dc=my-domain,dc=com", +)); +ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); +$result = ldap_search($link, "dc=my-domain,dc=com", "(cn=*)"); +$ref = ldap_first_reference($link, $result); +var_dump($ref2 = ldap_next_reference($link, $ref)); +ldap_parse_reference($link, $ref2, $refs); +var_dump($refs); +?> +===DONE=== "2.16.840.1.113730.3.4.2"))); +ldap_delete($link, "cn=userref,dc=my-domain,dc=com"); +ldap_delete($link, "cn=userref2,dc=my-domain,dc=com"); +remove_dummy_data($link); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php.expectf new file mode 100644 index 000000000..79ae56d4a --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_basic.php.expectf @@ -0,0 +1,6 @@ +resource(%d) of type (ldap result entry) +array(1) { + [0]=> + string(28) "cn=userB,dc=my-domain,dc=com" +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php new file mode 100644 index 000000000..f10c46f9a --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php @@ -0,0 +1,9 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php.expectf new file mode 100644 index 000000000..a7f4b7d1d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_next_reference_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php new file mode 100644 index 000000000..5527a9abc --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php @@ -0,0 +1,27 @@ + array("extensibleObject", "referral"), + "cn" => "userref", + "ref" => "cn=userA,dc=my-domain,dc=com", +)); +ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER); +$result = ldap_search($link, "dc=my-domain,dc=com", "(cn=*)"); +$ref = ldap_first_reference($link, $result); +$refs = null; +var_dump( + ldap_parse_reference($link, $ref, $refs), + $refs +); +?> +===DONE=== "2.16.840.1.113730.3.4.2"))); +ldap_delete($link, "cn=userref,dc=my-domain,dc=com"); +remove_dummy_data($link); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php.expectf new file mode 100644 index 000000000..1c76fff7f --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_basic.php.expectf @@ -0,0 +1,6 @@ +bool(true) +array(1) { + [0]=> + string(28) "cn=userA,dc=my-domain,dc=com" +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php new file mode 100644 index 000000000..3338b1f56 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php @@ -0,0 +1,12 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php.expectf new file mode 100644 index 000000000..52aba3e89 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_reference_error.php.expectf @@ -0,0 +1,8 @@ +HipHop Warning: %a +HipHop Warning: %a +HipHop Warning: %a +NULL +bool(false) +NULL +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php new file mode 100644 index 000000000..cc7016a03 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php @@ -0,0 +1,26 @@ + array("extensibleObject", "referral"), + "cn" => "userref", + "ref" => "cn=userA,dc=my-domain,dc=com", +)); +$result = ldap_search($link, "cn=userref,dc=my-domain,dc=com", "(cn=user*)"); +$errcode = $dn = $errmsg = $refs = null; +var_dump( + ldap_parse_result($link, $result, $errcode, $dn, $errmsg, $refs), + $errcode, $dn, $errmsg, $refs +); +?> +===DONE=== "2.16.840.1.113730.3.4.2"))); +ldap_delete($link, "cn=userref,dc=my-domain,dc=com"); +remove_dummy_data($link); +?> \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php.expectf new file mode 100644 index 000000000..320e46ff8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_parse_result_basic.php.expectf @@ -0,0 +1,9 @@ +bool(true) +int(10) +string(30) "cn=userref,dc=my-domain,dc=com" +string(0) "" +array(1) { + [0]=> + string(28) "cn=userA,dc=my-domain,dc=com" +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php new file mode 100644 index 000000000..be6cf34cf --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php @@ -0,0 +1,16 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php.expectf new file mode 100644 index 000000000..9c3842919 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_read_basic.php.expectf @@ -0,0 +1,44 @@ +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(8) { + ["objectclass"]=> + array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "top" + [1]=> + string(8) "dcObject" + [2]=> + string(12) "organization" + } + [0]=> + string(11) "objectclass" + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [1]=> + string(2) "dc" + ["o"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [2]=> + string(1) "o" + ["count"]=> + int(3) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php new file mode 100644 index 000000000..535303013 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php.expectf new file mode 100644 index 000000000..3a0592b5e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_rename_basic.php.expectf @@ -0,0 +1,31 @@ +bool(true) +array(2) { + ["count"]=> + int(1) + [0]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [0]=> + string(2) "sn" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userZ" + } + [1]=> + string(2) "cn" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userZ,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php new file mode 100644 index 000000000..575133421 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_basic.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php new file mode 100644 index 000000000..9ed0cfa2c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php.expectf new file mode 100644 index 000000000..2ec6984df --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sasl_bind_error.php.expectf @@ -0,0 +1,13 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php new file mode 100644 index 000000000..ef9e6e877 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php.expectf new file mode 100644 index 000000000..675bd6089 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_basic.php.expectf @@ -0,0 +1,162 @@ +resource(%d) of type (ldap result) +array(4) { + ["count"]=> + int(3) + [0]=> + array(14) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(4) "oops" + } + [3]=> + string(12) "userpassword" + ["telephonenumber"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(14) "xx-xx-xx-xx-xx" + } + [4]=> + string(15) "telephonenumber" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user A" + } + [5]=> + string(11) "description" + ["count"]=> + int(6) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(12) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userB" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(15) "oopsIDitItAgain" + } + [3]=> + string(12) "userpassword" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user B" + } + [4]=> + string(11) "description" + ["count"]=> + int(5) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(10) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userC" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(17) "0r1g1na1 passw0rd" + } + [3]=> + string(12) "userpassword" + ["count"]=> + int(4) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_error.php b/hphp/test/zend/bad/ext-ldap/ldap_search_error.php new file mode 100644 index 000000000..43c1ea2fa --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_error.php @@ -0,0 +1,30 @@ + 'top')); +var_dump($result); + +$result = ldap_search(array(), $dn, $filter, array('top')); +var_dump($result); + +$result = ldap_search(array($link, $link), array($dn), $filter, array('top')); +var_dump($result); + +$result = ldap_search(array($link, $link), $dn, array($filter), array('top')); +var_dump($result); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_error.php.expectf new file mode 100644 index 000000000..35bdc602c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_error.php.expectf @@ -0,0 +1,15 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +NULL +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php new file mode 100644 index 000000000..b9b522043 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php.expectf new file mode 100644 index 000000000..345778967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation1.php.expectf @@ -0,0 +1,22 @@ +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["dc"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(9) "my-domain" + } + [0]=> + string(2) "dc" + ["count"]=> + int(1) + ["dn"]=> + string(19) "dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php new file mode 100644 index 000000000..c76b2fb87 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php @@ -0,0 +1,17 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php.expectf new file mode 100644 index 000000000..69f8470b1 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation2.php.expectf @@ -0,0 +1,48 @@ +resource(%d) of type (ldap result) +array(4) { + ["count"]=> + int(3) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php new file mode 100644 index 000000000..4c776a19d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php.expectf new file mode 100644 index 000000000..0f0ffd156 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation3.php.expectf @@ -0,0 +1,68 @@ +resource(%d) of type (ldap result) +array(4) { + ["count"]=> + int(3) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php new file mode 100644 index 000000000..076ecbb3b --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php.expectf new file mode 100644 index 000000000..41098199a --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation4.php.expectf @@ -0,0 +1,21 @@ +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php new file mode 100644 index 000000000..a75533f3d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php @@ -0,0 +1,27 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php.expectf new file mode 100644 index 000000000..45473153b --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation5.php.expectf @@ -0,0 +1,61 @@ +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +HipHop Warning: %a +resource(%d) of type (ldap result) +array(2) { + ["count"]=> + int(1) + [0]=> + array(4) { + ["sn"]=> + array(1) { + ["count"]=> + int(0) + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php b/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php new file mode 100644 index 000000000..7cf1cbee8 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php @@ -0,0 +1,31 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php.expectf new file mode 100644 index 000000000..d8cf6219d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_search_variation6.php.expectf @@ -0,0 +1,184 @@ +array(2) { + [0]=> + resource(%d) of type (ldap result) + [1]=> + resource(%d) of type (ldap result) +} +array(4) { + ["count"]=> + int(3) + [0]=> + array(14) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userA" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(4) "oops" + } + [3]=> + string(12) "userpassword" + ["telephonenumber"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(14) "xx-xx-xx-xx-xx" + } + [4]=> + string(15) "telephonenumber" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user A" + } + [5]=> + string(11) "description" + ["count"]=> + int(6) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [1]=> + array(12) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userB" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(15) "oopsIDitItAgain" + } + [3]=> + string(12) "userpassword" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user B" + } + [4]=> + string(11) "description" + ["count"]=> + int(5) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [2]=> + array(10) { + ["objectclass"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "person" + } + [0]=> + string(11) "objectclass" + ["cn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(5) "userC" + } + [1]=> + string(2) "cn" + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [2]=> + string(2) "sn" + ["userpassword"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(17) "0r1g1na1 passw0rd" + } + [3]=> + string(12) "userpassword" + ["count"]=> + int(4) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } +} +bool(true) +array(2) { + [0]=> + resource(%d) of type (ldap result) + [1]=> + resource(%d) of type (ldap result) +} +NULL +NULL +array(2) { + [0]=> + resource(%d) of type (ldap result) + [1]=> + resource(%d) of type (ldap result) +} +NULL +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php new file mode 100644 index 000000000..75d49ccbb --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php @@ -0,0 +1,56 @@ + "1.2.752.58.10.1", "iscritical" => true), + array("oid" => "1.2.752.58.1.10", "value" => "magic"), +); + +var_dump(ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_ALWAYS)); +ldap_get_option($link, LDAP_OPT_DEREF, $option); +var_dump( + $option === LDAP_DEREF_ALWAYS, + ldap_set_option($link, LDAP_OPT_SIZELIMIT, 123) +); +ldap_get_option($link, LDAP_OPT_SIZELIMIT, $option); +var_dump( + $option, + ldap_set_option($link, LDAP_OPT_TIMELIMIT, 33) +); +ldap_get_option($link, LDAP_OPT_TIMELIMIT, $option); +var_dump( + $option, + ldap_set_option($link, LDAP_OPT_NETWORK_TIMEOUT, 44) +); +ldap_get_option($link, LDAP_OPT_NETWORK_TIMEOUT, $option); +var_dump( + $option, + ldap_set_option($link, LDAP_OPT_REFERRALS, true) +); +ldap_get_option($link, LDAP_OPT_REFERRALS, $option); +var_dump( + (bool) $option, + ldap_set_option($link, LDAP_OPT_RESTART, false) +); +ldap_get_option($link, LDAP_OPT_RESTART, $option); +var_dump( + (bool) $option, + ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, $controls) +); +ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $option); +var_dump( + $option, + ldap_set_option($link, LDAP_OPT_CLIENT_CONTROLS, $controls) +); +ldap_get_option($link, LDAP_OPT_CLIENT_CONTROLS, $option); +var_dump( + $option, + ldap_set_option($link, LDAP_OPT_MATCHED_DN, "dc=test,dc=com") +); +ldap_get_option($link, LDAP_OPT_MATCHED_DN, $option); +var_dump($option); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php.expectf new file mode 100644 index 000000000..155ca2713 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_option_variation.php.expectf @@ -0,0 +1,19 @@ +bool(true) +bool(true) +bool(true) +int(123) +bool(true) +int(33) +bool(true) +int(44) +bool(true) +bool(true) +bool(true) +bool(false) +bool(true) +int(0) +bool(true) +int(0) +bool(true) +string(14) "dc=test,dc=com" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php new file mode 100644 index 000000000..278152803 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php @@ -0,0 +1,21 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php.expectf new file mode 100644 index 000000000..c3b0dc5d5 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_basic.php.expectf @@ -0,0 +1,3 @@ +bool(true) +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php new file mode 100644 index 000000000..1f7130bae --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php @@ -0,0 +1,22 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php.expectf new file mode 100644 index 000000000..4e6c56d42 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_set_rebind_proc_error.php.expectf @@ -0,0 +1,7 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php new file mode 100644 index 000000000..18cbe82ab --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php @@ -0,0 +1,41 @@ + "person", + "cn" => "userC", + "sn" => "zzz", + "userPassword" => "oops", + "description" => "a user", +)); +ldap_add($link, "cn=userD,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userD", + "sn" => "aaa", + "userPassword" => "oops", + "description" => "another user", +)); +ldap_add($link, "cn=userE,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userE", + "sn" => "a", + "userPassword" => "oops", + "description" => "yet another user", +)); +$result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=person)", array("sn", "description")); +var_dump( + ldap_sort($link, $result, "sn"), + ldap_get_entries($link, $result) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php.expectf new file mode 100644 index 000000000..4ea0bc7dd --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_basic.php.expectf @@ -0,0 +1,147 @@ +bool(true) +array(7) { + ["count"]=> + int(6) + [0]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(1) "a" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(16) "yet another user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userE,dc=my-domain,dc=com" + } + [1]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(3) "aaa" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(12) "another user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userD,dc=my-domain,dc=com" + } + [2]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user A" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [3]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user B" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [4]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } + [5]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(3) "zzz" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "a user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userC,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php b/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php new file mode 100644 index 000000000..9c9a21ab3 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php @@ -0,0 +1,11 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php.expectf new file mode 100644 index 000000000..04e26233c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_error.php.expectf @@ -0,0 +1,11 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php new file mode 100644 index 000000000..74e85bafa --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php @@ -0,0 +1,41 @@ + "person", + "cn" => "userC", + "sn" => "zzz", + "userPassword" => "oops", + "description" => "a user", +)); +ldap_add($link, "cn=userD,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userD", + "sn" => "aaa", + "userPassword" => "oops", + "description" => "another user", +)); +ldap_add($link, "cn=userE,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userE", + "sn" => "a", + "userPassword" => "oops", + "description" => "yet another user", +)); +$result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=person)", array("sn", "description")); +var_dump( + ldap_sort($link, $result, "description"), + ldap_get_entries($link, $result) +); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php.expectf new file mode 100644 index 000000000..95b7c349c --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_sort_variation.php.expectf @@ -0,0 +1,147 @@ +bool(true) +array(7) { + ["count"]=> + int(6) + [0]=> + array(4) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN3" + } + [0]=> + string(2) "sn" + ["count"]=> + int(1) + ["dn"]=> + string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" + } + [1]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(3) "zzz" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "a user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userC,dc=my-domain,dc=com" + } + [2]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(3) "aaa" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(12) "another user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userD,dc=my-domain,dc=com" + } + [3]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN1" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user A" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userA,dc=my-domain,dc=com" + } + [4]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(7) "testSN2" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(6) "user B" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userB,dc=my-domain,dc=com" + } + [5]=> + array(6) { + ["sn"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(1) "a" + } + [0]=> + string(2) "sn" + ["description"]=> + array(2) { + ["count"]=> + int(1) + [0]=> + string(16) "yet another user" + } + [1]=> + string(11) "description" + ["count"]=> + int(2) + ["dn"]=> + string(28) "cn=userE,dc=my-domain,dc=com" + } +} +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php new file mode 100644 index 000000000..f433846f7 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_start_tls_basic.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php b/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php new file mode 100644 index 000000000..a9879723e --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_basic.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php b/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php new file mode 100644 index 000000000..798e82f4d --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php @@ -0,0 +1,19 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php.expectf new file mode 100644 index 000000000..6d9cfb0be --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_error.php.expectf @@ -0,0 +1,10 @@ +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +bool(true) +HipHop Warning: %a +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php b/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php new file mode 100644 index 000000000..be9930b13 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php @@ -0,0 +1,22 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php.expectf b/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php.expectf new file mode 100644 index 000000000..e7c042967 --- /dev/null +++ b/hphp/test/zend/bad/ext-ldap/ldap_unbind_variation.php.expectf @@ -0,0 +1,2 @@ +bool(true) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/connect.inc b/hphp/test/zend/good/ext-ldap/connect.inc new file mode 100644 index 000000000..ddb57828e --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/connect.inc @@ -0,0 +1,61 @@ + array( + "top", + "dcObject", + "organization"), + "dc" => "my-domain", + "o" => "my-domain", + )); + ldap_add($link, "cn=userA,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userA", + "sn" => "testSN1", + "userPassword" => "oops", + "telephoneNumber" => "xx-xx-xx-xx-xx", + "description" => "user A", + )); + ldap_add($link, "cn=userB,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userB", + "sn" => "testSN2", + "userPassword" => "oopsIDitItAgain", + "description" => "user B", + )); + ldap_add($link, "cn=userC,cn=userB,dc=my-domain,dc=com", array( + "objectclass" => "person", + "cn" => "userC", + "sn" => "testSN3", + "userPassword" => "0r1g1na1 passw0rd", + )); +} + +function remove_dummy_data($link) { + ldap_delete($link, "cn=userC,cn=userB,dc=my-domain,dc=com"); + ldap_delete($link, "cn=userA,dc=my-domain,dc=com"); + ldap_delete($link, "cn=userB,dc=my-domain,dc=com"); + ldap_delete($link, "dc=my-domain,dc=com"); +} +?> diff --git a/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php b/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php new file mode 100644 index 000000000..c11cfd51b --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php @@ -0,0 +1,7 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php.expectf new file mode 100644 index 000000000..105565036 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_connect_basic.php.expectf @@ -0,0 +1,2 @@ +resource(%d) of type (ldap link) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php b/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php new file mode 100644 index 000000000..18371d8c6 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php @@ -0,0 +1,24 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php.expectf new file mode 100644 index 000000000..60b9c3433 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_connect_variation.php.expectf @@ -0,0 +1,6 @@ +resource(%d) of type (ldap link) +resource(%d) of type (ldap link) +resource(%d) of type (ldap link) +resource(%d) of type (ldap link) +resource(%d) of type (ldap link) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php b/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php new file mode 100644 index 000000000..61f3b8655 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php @@ -0,0 +1,20 @@ + characters */ +var_dump(ldap_dn2ufn("cn=,dc=example,dc=com")); + +/* Too many parameters */ +ldap_dn2ufn("cn=bob,dc=example,dc=com", 1); + +/* Bad DN value */ +var_dump(ldap_dn2ufn("bob,dc=example,dc=com")); + +echo "Done\n"; + +?> \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php.expectf new file mode 100644 index 000000000..17222521d --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_dn2ufn.php.expectf @@ -0,0 +1,6 @@ +string(16) "bob, example.com" +string(23) "bob, users, example.com" +bool(false) +HipHop Warning: %a +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php b/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php new file mode 100644 index 000000000..3bd309d52 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php @@ -0,0 +1,4 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php.expectf new file mode 100644 index 000000000..dc1c42bf2 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_err2str_basic.php.expectf @@ -0,0 +1,2 @@ +string(14) "Protocol error" +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_errno_error.php b/hphp/test/zend/good/ext-ldap/ldap_errno_error.php new file mode 100644 index 000000000..7c4620b2a --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_errno_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_errno_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_errno_error.php.expectf new file mode 100644 index 000000000..54f5bdaf2 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_errno_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_error_error.php b/hphp/test/zend/good/ext-ldap/ldap_error_error.php new file mode 100644 index 000000000..d82a4cd17 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_error_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_error_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_error_error.php.expectf new file mode 100644 index 000000000..54f5bdaf2 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_error_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php b/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php new file mode 100644 index 000000000..e30d38e69 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php @@ -0,0 +1,35 @@ + characters */ +var_dump(ldap_explode_dn("cn=,dc=example,dc=com", 0)); + +/* Explode without attributes and < > characters */ +var_dump(ldap_explode_dn("cn=,dc=example,dc=com", 1)); + +/* Too few parameters */ +ldap_explode_dn("cn=bob,dc=example,dc=com"); + +/* Too many parameters */ +ldap_explode_dn("cn=bob,dc=example,dc=com", 1, 1); + +/* Bad DN value with attributes */ +var_dump(ldap_explode_dn("bob,dc=example,dc=com", 0)); + +/* Bad DN value without attributes */ +var_dump(ldap_explode_dn("bob,dc=example,dc=com", 1)); + +echo "Done\n"; + +?> \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php.expectf new file mode 100644 index 000000000..98a282a80 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_explode_dn.php.expectf @@ -0,0 +1,51 @@ +array(4) { + ["count"]=> + int(3) + [0]=> + string(6) "cn=bob" + [1]=> + string(10) "dc=example" + [2]=> + string(6) "dc=com" +} +array(5) { + ["count"]=> + int(4) + [0]=> + string(6) "cn=bob" + [1]=> + string(8) "ou=users" + [2]=> + string(10) "dc=example" + [3]=> + string(6) "dc=com" +} +array(4) { + ["count"]=> + int(3) + [0]=> + string(3) "bob" + [1]=> + string(7) "example" + [2]=> + string(3) "com" +} +array(5) { + ["count"]=> + int(4) + [0]=> + string(3) "bob" + [1]=> + string(5) "users" + [2]=> + string(7) "example" + [3]=> + string(3) "com" +} +bool(false) +bool(false) +HipHop Warning: %a +HipHop Warning: %a +bool(false) +bool(false) +Done \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php b/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php new file mode 100644 index 000000000..35a62156e --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php @@ -0,0 +1,13 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php.expectf new file mode 100644 index 000000000..3e9aa9d45 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_get_option_basic.php.expectf @@ -0,0 +1,3 @@ +bool(true) +int(3) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php b/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php new file mode 100644 index 000000000..4b1698985 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php @@ -0,0 +1,18 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php.expectf new file mode 100644 index 000000000..83332f3b4 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_get_option_error.php.expectf @@ -0,0 +1,10 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_list_error.php b/hphp/test/zend/good/ext-ldap/ldap_list_error.php new file mode 100644 index 000000000..ee1ad3392 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_list_error.php @@ -0,0 +1,14 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_list_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_list_error.php.expectf new file mode 100644 index 000000000..521d811ab --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_list_error.php.expectf @@ -0,0 +1,9 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php b/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php new file mode 100644 index 000000000..8ee44b116 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php @@ -0,0 +1,5 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php.expectf new file mode 100644 index 000000000..f9787e34f --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_parse_result_error.php.expectf @@ -0,0 +1,3 @@ +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_read_error.php b/hphp/test/zend/good/ext-ldap/ldap_read_error.php new file mode 100644 index 000000000..cd90bcd41 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_read_error.php @@ -0,0 +1,14 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_read_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_read_error.php.expectf new file mode 100644 index 000000000..521d811ab --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_read_error.php.expectf @@ -0,0 +1,9 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_rename_error.php b/hphp/test/zend/good/ext-ldap/ldap_rename_error.php new file mode 100644 index 000000000..e18488d11 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_rename_error.php @@ -0,0 +1,8 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_rename_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_rename_error.php.expectf new file mode 100644 index 000000000..9db144b56 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_rename_error.php.expectf @@ -0,0 +1,4 @@ +HipHop Warning: %a +NULL +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php b/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php new file mode 100644 index 000000000..203148fb1 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php @@ -0,0 +1,11 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php.expectf new file mode 100644 index 000000000..3e9aa9d45 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_set_option_basic.php.expectf @@ -0,0 +1,3 @@ +bool(true) +int(3) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php b/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php new file mode 100644 index 000000000..b4764d52c --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php @@ -0,0 +1,34 @@ + "1.2.752.58.10.1", "iscritical" => true), + array("xid" => "1.2.752.58.1.10", "value" => "magic"), + ), + array( + array("oid" => "1.2.752.58.10.1", "iscritical" => true), + array("oid" => "1.2.752.58.1.10", "value" => "magic"), + "weird" + ), + array( + ), +); + +// Too few parameters +var_dump(ldap_set_option()); +var_dump(ldap_set_option($link)); +var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION)); + +// Too many parameters +var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 3, "Additional data")); + +var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, 10)); + +foreach ($controls as $control) + var_dump(ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, $control)); + +var_dump(ldap_set_option($link, 999999, 999999)); +?> +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php.expectf new file mode 100644 index 000000000..a7e20c234 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_set_option_error.php.expectf @@ -0,0 +1,17 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +HipHop Warning: %a +bool(false) +bool(false) +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php b/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php new file mode 100644 index 000000000..42a9440db --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php @@ -0,0 +1,11 @@ + +===DONE=== \ No newline at end of file diff --git a/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php.expectf b/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php.expectf new file mode 100644 index 000000000..54f5bdaf2 --- /dev/null +++ b/hphp/test/zend/good/ext-ldap/ldap_start_tls_error.php.expectf @@ -0,0 +1,5 @@ +HipHop Warning: %a +NULL +HipHop Warning: %a +NULL +===DONE=== \ No newline at end of file diff --git a/hphp/tools/import_zend_test.py b/hphp/tools/import_zend_test.py index a67771c14..21f4ffe3a 100755 --- a/hphp/tools/import_zend_test.py +++ b/hphp/tools/import_zend_test.py @@ -106,7 +106,6 @@ no_import = ( # not imported yet, but will be '/ext/gd', - '/ext/ldap', '/ext/mbstring', '/ext/standard', '/ext/mcrypt', @@ -209,6 +208,7 @@ other_files = ( '/ext-gd/test8859.ttf', '/ext-gd/test_gif.gif', '/ext-intl/ut_common.inc', + '/ext-ldap/connect.inc', '/ext-openssl/005_crt.txt', '/ext-openssl/bug37820cert.pem', '/ext-openssl/bug37820key.pem',