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 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:
MUST BE VALID
Solve the problem:
34 + 37 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 16:01:30 2024 UTC