php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68376 PHP Fatal error: Class 'HttpMessage' not found
Submitted: 2014-11-07 21:13 UTC Modified: 2014-11-07 21:47 UTC
From: cameron at datashovel dot com Assigned:
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.5.18 OS: AWS Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cameron at datashovel dot com
New email:
PHP Version: OS:

 

 [2014-11-07 21:13 UTC] cameron at datashovel dot com
Description:
------------
I've installed the pecl_http 2.1.4, and most recent versions of the dependencies: raphf, and propro extensions.  Ensured appropriate load order in .ini files, and ran script.  The script returns no result.  Instead I receive fatal errors saying that the HttpMessage object does not exist.

The AWS Linux instance is relatively new (almost 1 month old).

Test script:
---------------
<?php

$http="GET / HTTP/1.1\r\nHost: www.example.com\r\nConnection: close\r\n\r\n";

$msg = new HttpMessage($http);

var_dump($msg);

Expected result:
----------------
return instantiated object

Actual result:
--------------
PHP Fatal error:  Class 'HttpMessage' not found in /var/www/http.php on line 5


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-07 21:38 UTC] cameron at datashovel dot com
Just recognized the issue.  Documentation says (at bottom) that up-to-date documentation is here:

http://devel-m6w6.rhcloud.com/mdref/http/

Changing HttpMessage to  http\Message fixed the issue.
 [2014-11-07 21:47 UTC] cameron at datashovel dot com
-Status: Open +Status: Closed
 [2014-11-07 21:47 UTC] cameron at datashovel dot com
resolved
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC