FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17280&edit=1

ID: 17280
Updated by: daniel.oconnor@gmail.com
Reported By: jan dot matousek at gmail dot com
Summary: error with values beginning with at sign (@)
Status: Open
Type: Bug
Package: Services_Facebook
Package Version: SVN
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

Cough: HTTP_Request2 ftw


Previous Comments:
------------------------------------------------------------------------

[2010-03-30 12:46:59] janmatousek

Description:
------------
In Services_Facebook_Common, method sendRequest, this construct is
used:

curl_setopt($ch, CURLOPT_POSTFIELDS, $args);

Correct version would be

curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args));

because otherwise of one of $args values begins with "@", it will be
interpreted as file name and error "failed creating formpost data" will
be raised (http://bugs.php.net/bug.php?id=50060)

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 31, '10 at 4:09a
activeMar 31, '10 at 4:09a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase