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
 [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-2022 The PHP Group
All rights reserved.
Last updated: Wed Sep 28 03:05:53 2022 UTC