| | 36 | static protected $statusTexts = array( |
|---|
| | 37 | '100' => 'Continue', |
|---|
| | 38 | '101' => 'Switching Protocols', |
|---|
| | 39 | '200' => 'OK', |
|---|
| | 40 | '201' => 'Created', |
|---|
| | 41 | '202' => 'Accepted', |
|---|
| | 42 | '203' => 'Non-Authoritative Information', |
|---|
| | 43 | '204' => 'No Content', |
|---|
| | 44 | '205' => 'Reset Content', |
|---|
| | 45 | '206' => 'Partial Content', |
|---|
| | 46 | '300' => 'Multiple Choices', |
|---|
| | 47 | '301' => 'Moved Permanently', |
|---|
| | 48 | '302' => 'Found', |
|---|
| | 49 | '303' => 'See Other', |
|---|
| | 50 | '304' => 'Not Modified', |
|---|
| | 51 | '305' => 'Use Proxy', |
|---|
| | 52 | '306' => '(Unused)', |
|---|
| | 53 | '307' => 'Temporary Redirect', |
|---|
| | 54 | '400' => 'Bad Request', |
|---|
| | 55 | '401' => 'Unauthorized', |
|---|
| | 56 | '402' => 'Payment Required', |
|---|
| | 57 | '403' => 'Forbidden', |
|---|
| | 58 | '404' => 'Not Found', |
|---|
| | 59 | '405' => 'Method Not Allowed', |
|---|
| | 60 | '406' => 'Not Acceptable', |
|---|
| | 61 | '407' => 'Proxy Authentication Required', |
|---|
| | 62 | '408' => 'Request Timeout', |
|---|
| | 63 | '409' => 'Conflict', |
|---|
| | 64 | '410' => 'Gone', |
|---|
| | 65 | '411' => 'Length Required', |
|---|
| | 66 | '412' => 'Precondition Failed', |
|---|
| | 67 | '413' => 'Request Entity Too Large', |
|---|
| | 68 | '414' => 'Request-URI Too Long', |
|---|
| | 69 | '415' => 'Unsupported Media Type', |
|---|
| | 70 | '416' => 'Requested Range Not Satisfiable', |
|---|
| | 71 | '417' => 'Expectation Failed', |
|---|
| | 72 | '500' => 'Internal Server Error', |
|---|
| | 73 | '501' => 'Not Implemented', |
|---|
| | 74 | '502' => 'Bad Gateway', |
|---|
| | 75 | '503' => 'Service Unavailable', |
|---|
| | 76 | '504' => 'Gateway Timeout', |
|---|
| | 77 | '505' => 'HTTP Version Not Supported', |
|---|
| | 78 | ); |
|---|
| | 79 | |
|---|
| 58 | | |
|---|
| 59 | | $this->statusTexts = array( |
|---|
| 60 | | '100' => 'Continue', |
|---|
| 61 | | '101' => 'Switching Protocols', |
|---|
| 62 | | '200' => 'OK', |
|---|
| 63 | | '201' => 'Created', |
|---|
| 64 | | '202' => 'Accepted', |
|---|
| 65 | | '203' => 'Non-Authoritative Information', |
|---|
| 66 | | '204' => 'No Content', |
|---|
| 67 | | '205' => 'Reset Content', |
|---|
| 68 | | '206' => 'Partial Content', |
|---|
| 69 | | '300' => 'Multiple Choices', |
|---|
| 70 | | '301' => 'Moved Permanently', |
|---|
| 71 | | '302' => 'Found', |
|---|
| 72 | | '303' => 'See Other', |
|---|
| 73 | | '304' => 'Not Modified', |
|---|
| 74 | | '305' => 'Use Proxy', |
|---|
| 75 | | '306' => '(Unused)', |
|---|
| 76 | | '307' => 'Temporary Redirect', |
|---|
| 77 | | '400' => 'Bad Request', |
|---|
| 78 | | '401' => 'Unauthorized', |
|---|
| 79 | | '402' => 'Payment Required', |
|---|
| 80 | | '403' => 'Forbidden', |
|---|
| 81 | | '404' => 'Not Found', |
|---|
| 82 | | '405' => 'Method Not Allowed', |
|---|
| 83 | | '406' => 'Not Acceptable', |
|---|
| 84 | | '407' => 'Proxy Authentication Required', |
|---|
| 85 | | '408' => 'Request Timeout', |
|---|
| 86 | | '409' => 'Conflict', |
|---|
| 87 | | '410' => 'Gone', |
|---|
| 88 | | '411' => 'Length Required', |
|---|
| 89 | | '412' => 'Precondition Failed', |
|---|
| 90 | | '413' => 'Request Entity Too Large', |
|---|
| 91 | | '414' => 'Request-URI Too Long', |
|---|
| 92 | | '415' => 'Unsupported Media Type', |
|---|
| 93 | | '416' => 'Requested Range Not Satisfiable', |
|---|
| 94 | | '417' => 'Expectation Failed', |
|---|
| 95 | | '500' => 'Internal Server Error', |
|---|
| 96 | | '501' => 'Not Implemented', |
|---|
| 97 | | '502' => 'Bad Gateway', |
|---|
| 98 | | '503' => 'Service Unavailable', |
|---|
| 99 | | '504' => 'Gateway Timeout', |
|---|
| 100 | | '505' => 'HTTP Version Not Supported', |
|---|
| 101 | | ); |
|---|
| 710 | | $data = unserialize($serialized); |
|---|
| 711 | | |
|---|
| 712 | | $this->initialize(sfContext::hasInstance() ? sfContext::getInstance()->getEventDispatcher() : new sfEventDispatcher()); |
|---|
| 713 | | |
|---|
| 714 | | list($this->content, $this->statusCode, $this->statusText, $this->options, $this->cookies, $this->headerOnly, $this->headers, $this->metas, $this->httpMetas, $this->stylesheets, $this->javascripts, $this->slots) = $data; |
|---|
| | 707 | list($this->content, $this->statusCode, $this->statusText, $this->options, $this->cookies, $this->headerOnly, $this->headers, $this->metas, $this->httpMetas, $this->stylesheets, $this->javascripts, $this->slots) = unserialize($serialized); |
|---|