|  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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 + 46 = ?
Subscribe to this entry?

 [2014-11-07 21:13 UTC] cameron at datashovel dot com
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:

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

$msg = new HttpMessage($http);


Expected result:
return instantiated object

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


Add a Patch

Pull Requests

Add a Pull Request


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:

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
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 12:01:28 2024 UTC