|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-28 09:36 UTC] mike@php.net
[2008-10-29 15:25 UTC] fjas at free dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 15:00:01 2025 UTC |
Description: ------------ Trying to use the HttpRequest class results in a fatal error. Yet, the Http extension was correctly loadad, and the class HttpQueryString, or the function http_get(), work right. Note that my libcurl version is 7.16.0. Also note that my PHP version is 5.2.6 (and not 5.2.5, as mentionned: it would be nice to update the webform, so we can choose "5.2.6"). Also, note that I have "1.6.1-dev" (I could not find a "1.6.1-stable", neither in the current 5.2.6 win32 distrib, neither in the separate win32 pecl package) Mu Curl version: cURL support : enabled cURL Information : libcurl/7.16.0 OpenSSL/0.9.8g zlib/1.2.3 Used Library Compiled Linked libcurl 7.16.0 7.16.0 libevent disabled disabled libz 1.2.3 1.2.3 libmagic unknown unknown My loaded extensions (php.ini): extension=php_curl.dll extension=php_gd2.dll extension=php_http.dll extension=php_ldap.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_oci8.dll extension=php_openssl.dll extension=php_curl.dll extension=php_printer.dll extension=php_soap.dll extension=php_sockets.dll extension=php_xsl.dll Here is my configure cmd: cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB" Apache version : Apache/2.2.8 (Win32) PHP/5.2.6 Reproduce code: --------------- $h = HttpRequest('http://www.google.com/', HTTP_METH_GET); Expected result: ---------------- No error Actual result: -------------- Fatal error: Call to undefined function HttpRequest() in ...