Open Source Training Seminar FreePBX Paid Support

Ticket #1286 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

PHP 5 uses a different get_headers

Reported by: RobThomas Assigned to: gregmac
Priority: minor Milestone:
Component: Core - Module Admin Version: 2.2beta2
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by RobThomas)

PHP5's (or, at least the PHP5.1.6 that vgster is using) returns this from get_headers:

Array ( 
  [0] => HTTP/1.0 200 OK 
  [1] => Age: 47299 
  [2] => Accept-Ranges: bytes 
  [3] => Date: Mon, 06 Nov 2006 23:56:47 GMT 
  [4] => Content-Length: 3867 
  [5] => Content-Type: application/x-gzip 
  [6] => Server: Apache/2.0.52 (CentOS) 
  [7] => Last-Modified: Wed, 01 Nov 2006 13:29:45 GMT 
  [8] => ETag: "314202-f1b-7f042440" 
)

When we're expecting:

Array (
  [Age] => 47299
  [Accept-Ranges] => 'Bytes'
..etc etc..
)

Change History

11/07/06 05:07:17 changed by RobThomas

  • description changed.

11/07/06 05:27:53 changed by RobThomas

need to add a ,1 to get_headers, but apparently it's still not working. Will build a ubuntu vmware machine and try it on that.

11/07/06 08:52:54 changed by gregmac

  • status changed from new to closed.
  • resolution set to fixed.

Renamed to get_headers_assoc() in r3024

Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads