|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-18 21:15 UTC] jawed@php.net
[2011-07-19 00:45 UTC] neenach2002 at gmail dot com
[2011-07-19 01:26 UTC] jawed@php.net
[2011-07-19 01:28 UTC] neenach2002 at gmail dot com
[2011-07-19 19:55 UTC] jawed@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Description: ------------ Apache segfaults when you don't specify the first 3 parameters for fetch() Reproduce code: --------------- $oauth = new OAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET); $oauth->setToken('valid-key', 'valid-secret'); $oauth->fetch('https://api.twitter.com/1/account/verify_credentials.json'); $response = json_decode($oauth->getLastResponse()); var_dump($response); The above code produces the issue described below. However, if the fetch line is changed to: $oauth->fetch('https://api.twitter.com/1/account/verify_credentials.json', array(), OAUTH_HTTP_METHOD_GET); The expected result is produced. Expected result: ---------------- I expect to see a page with the contents of the $response variable Actual result: -------------- Apache segfaults and my browser prompts me to download a blank page with the same name as I'm viewing.