> Fatal error: Call to undefined function http_post_fields() ...
>
[quoted text clipped - 3 lines]
> We have php-pecl-session_mysql-1.9-1.el5.rf.i386.rpm installed but are
> still unable to parse that function.
>> Fatal error: Call to undefined function http_post_fields() ...
...
>> Will someone tell me please what CentOS or rpmforge package is needed?
>
> I don't use CentOS, but it looks like RPMforge's php-pecl-http would be
> the package you need.
Thanks for your considerations.
There's no such php-pecl-http package at rpmforge, so I downloaded,
compiled and installed http://pecl.php.net/package/pecl_http/1.6.6
...
# make install
Installing shared extensions: /usr/lib/php/modules/
Installing header files: /usr/include/php/
"/etc/init.d/httpd restart" was given, yet the same problem persists:
Fatal error: Call to undefined function http_post_fields() ...
Greg Russell - 10 Mar 2010 06:05 GMT
>>> Fatal error: Call to undefined function http_post_fields() ...
> ...
[quoted text clipped - 16 lines]
>
> Fatal error: Call to undefined function http_post_fields() ...
I'll add:
# strings - /usr/lib/php/modules/http.so | grep http_post_fields
zif_http_post_fields
http_post_fields
zif_http_post_fields
zif_http_post_fields
zif_http_post_fields
Álvaro G. Vicario - 10 Mar 2010 08:23 GMT
El 10/03/2010 6:52, Greg Russell escribió/wrote:
>>> Fatal error: Call to undefined function http_post_fields() ...
> ...
[quoted text clipped - 16 lines]
>
> Fatal error: Call to undefined function http_post_fields() ...
Are you calling pecl_http from your php.ini file?

Signature
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Greg Russell - 10 Mar 2010 18:39 GMT
>> Fatal error: Call to undefined function http_post_fields() ...
>
> Are you calling pecl_http from your php.ini file?
Thank you for your considerations. Apparently, the answer is "no":
$ grep pecl /etc/php.ini
$
Álvaro G. Vicario - 11 Mar 2010 08:53 GMT
El 10/03/2010 19:39, Greg Russell escribió/wrote:
>>> Fatal error: Call to undefined function http_post_fields() ...
>>
[quoted text clipped - 3 lines]
>
> $ grep pecl /etc/php.ini
You have to instruct PHP to load the *.so file you compiled. It must be
something like:
extension=http.so
... according to this article:
http://www.host.co.in/forums/f37/how-install-pecl_http-php-extension-853/
Be aware that you may have an /etc/php.d/ directory with several
configuration files. If so, it can be a good idea to add a new file.

Signature
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Greg Russell - 11 Mar 2010 09:01 GMT
>> $ grep pecl /etc/php.ini
>
[quoted text clipped - 9 lines]
> Be aware that you may have an /etc/php.d/ directory with several
> configuration files. If so, it can be a good idea to add a new file.
Excellent, thank you, the problem is solved.
$ cat /etc/php.d/http.ini
extension=http.so