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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 Oct 12 18:01:27 2024 UTC