PATH:
opt
/
alt
/
tests
/
alt-php52-pecl-http_1.7.6-1.el8
/
tests
--TEST-- parse cookie --SKIPIF-- <?php include 'skip.inc'; checkmin("5.2.5"); ?> --FILE-- <?php echo "-TEST\n"; var_dump(http_parse_cookie('foo')->cookies['foo']); var_dump(http_parse_cookie('foo;')->cookies['foo']); var_dump(http_parse_cookie('foo ')->cookies['foo']); var_dump(http_parse_cookie('foo ;')->cookies['foo']); var_dump(http_parse_cookie('foo ; ')->cookies['foo']); var_dump(http_parse_cookie('foo=')->cookies['foo']); var_dump(http_parse_cookie('foo=;')->cookies['foo']); var_dump(http_parse_cookie('foo =')->cookies['foo']); var_dump(http_parse_cookie('foo =;')->cookies['foo']); var_dump(http_parse_cookie('foo= ')->cookies['foo']); var_dump(http_parse_cookie('foo= ;')->cookies['foo']); var_dump(http_parse_cookie('foo=1')->cookies['foo']); var_dump(http_parse_cookie('foo=1;')->cookies['foo']); var_dump(http_parse_cookie('foo=1 ;')->cookies['foo']); var_dump(http_parse_cookie('foo= 1;')->cookies['foo']); var_dump(http_parse_cookie('foo = 1;')->cookies['foo']); var_dump(http_parse_cookie('foo = 1 ;')->cookies['foo']); var_dump(http_parse_cookie('foo=1')->cookies['foo']); var_dump(http_parse_cookie('foo= 1')->cookies['foo']); var_dump(http_parse_cookie('foo="1"')->cookies['foo']); var_dump(http_parse_cookie('foo="1" ')->cookies['foo']); var_dump(http_parse_cookie('foo="1";')->cookies['foo']); var_dump(http_parse_cookie('foo = "1" ;')->cookies['foo']); var_dump(http_parse_cookie('foo= "1" ')->cookies['foo']); var_dump(http_parse_cookie('foo=""')->cookies['foo']); var_dump(http_parse_cookie('foo="\""')->cookies['foo']); var_dump(http_parse_cookie('foo=" "')->cookies['foo']); var_dump(http_parse_cookie('foo= "')->cookies['foo']); var_dump(http_parse_cookie('foo=" ')->cookies['foo']); var_dump(http_parse_cookie('foo= " ')->cookies['foo']); echo "Done\n"; ?> --EXPECTF-- %aTEST string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(0) "" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(1) "1" string(0) "" string(1) """ string(1) " " string(1) """ string(1) """ string(1) """ Done
[-] match_request_header_001.phpt
[edit]
[-] persistent_handles_003.phpt
[edit]
[-] chunked_decode_001.phpt
[edit]
[-] send_file_011.phpt
[edit]
[-] redirect_011.phpt
[edit]
[-] HttpRequestPool_005.phpt
[edit]
[-] cloning_001.phpt
[edit]
[-] redirect_011_logging.phpt
[edit]
[-] etag_mode_043.phpt
[edit]
[-] encoding_objects_001.phpt
[edit]
[-] send_data_005.phpt
[edit]
[-] parse_params_001.phpt
[edit]
[-] negotiation_001.phpt
[edit]
[-] build_str_001.phpt
[edit]
[-] date_002.phpt
[edit]
[-] send_file_012.phpt
[edit]
[-] HttpMessage_007.phpt
[edit]
[-] send_file_010.phpt
[edit]
[-] parse_message_004.phpt
[edit]
[-] chunked_decode_004.phpt
[edit]
[-] parse_headers_001.phpt
[edit]
[-] redirect_013_logging.phpt
[edit]
[-] parse_message_006.phpt
[edit]
[-] urls.txt
[edit]
[-] HttpResponse_003.phpt
[edit]
[-] request_methods.phpt
[edit]
[-] HttpMessage_001.phpt
[edit]
[-] etag_mode_033.phpt
[edit]
[-] etag_mode_041.phpt
[edit]
[-] send_ifrange_001.phpt
[edit]
[-] build_url_003.phpt
[edit]
[-] send_data_003.phpt
[edit]
[-] build_url_004.phpt
[edit]
[-] HttpResponse_004.phpt
[edit]
[-] parse_message_003.phpt
[edit]
[-] HttpRequest_005.phpt
[edit]
[-] data.txt
[edit]
[-] parse_cookie_001.phpt
[edit]
[-] ob_deflatehandler_001.phpt
[edit]
[-] etag_mode_042.phpt
[edit]
[-] send_ifrange_003.phpt
[edit]
[-] send_data_011.phpt
[edit]
[-] HttpMessage_008.phpt
[edit]
[-] date_001.phpt
[edit]
[-] bug_15800.phpt
[edit]
[-] parse_cookie_002.phpt
[edit]
[-] HttpResponse_001.phpt
[edit]
[-] HttpRequestPool_004.phpt
[edit]
[-] parse_message_002.phpt
[edit]
[-] HttpMessage_005.phpt
[edit]
[-] send_data_004.phpt
[edit]
[-] persistent_handles_001.phpt
[edit]
[-] HttpRequest_006.phpt
[edit]
[-] redirect_013.phpt
[edit]
[-] build_url_002.phpt
[edit]
[-] allowed_methods_002_logging.phpt
[edit]
[-] chunked_decode_003.phpt
[edit]
[-] send_data_010.phpt
[edit]
[-] exceptions.phpt
[edit]
[-] HttpMessage_006.phpt
[edit]
[-] HttpResponse_002.phpt
[edit]
[-] etag_mode_032.phpt
[edit]
[-] get_request_data_001.phpt
[edit]
[-] send_file_009.phpt
[edit]
[-] redirect_012_logging.phpt
[edit]
[-] HttpResponse_005.phpt
[edit]
[-] ob_inflatehandler_001.phpt
[edit]
[-] encodings.phpt
[edit]
[-] HttpRequest_001.phpt
[edit]
[-] parse_message_005.phpt
[edit]
[-] persistent_handles_002.phpt
[edit]
[-] etag_mode_044.phpt
[edit]
[-] skip.inc
[edit]
[-] stream_filters_003.phpt
[edit]
[-] etag_mode_034.phpt
[edit]
[-] HttpMessage_002.phpt
[edit]
[-] stream_filters_002.phpt
[edit]
[-] send_data_002.phpt
[edit]
[-] redirect_012.phpt
[edit]
[-] HttpRequestPool_006.phpt
[edit]
[+]
..
[-] log.inc
[edit]
[-] send_file_013.phpt
[edit]
[-] HttpMessage_004.phpt
[edit]
[-] send_data_001.phpt
[edit]
[-] stream_filters_001.phpt
[edit]
[-] chunked_decode_002.phpt
[edit]
[-] etag_mode_031.phpt
[edit]
[-] send_failed_precond_001.phpt
[edit]
[-] allowed_methods_002.phpt
[edit]
[-] send_data_006.phpt
[edit]
[-] HttpMessage_003.phpt
[edit]
[-] send_file_008.phpt
[edit]
[-] build_url_001.phpt
[edit]
[-] send_file_005.phpt
[edit]