|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59183 OAuth::fetch segfault if params array non-associative
Submitted: 2010-04-28 21:04 UTC Modified: 2010-05-03 09:50 UTC
From: paul+peclbugs at annesley dot cc Assigned:
Status: Closed Package: oauth (PECL)
PHP Version: 5.2.10 OS: Ubuntu 9.10
Private report: No CVE-ID: None
 [2010-04-28 21:04 UTC] paul+peclbugs at annesley dot cc
If a non-associative array is passed to the 
$extra_parameters paramter of OAuth::fetch() a segmentation 
fault occurs.

Makes debugging a typo like array('a', 'b') instead of 
array('a' => 'b') particularly difficult.

PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: 
Jan  6 2010 22:56:44) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend 
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
    with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick 

[Thu Apr 29 10:57:30 2010] [notice] child pid 13450 exit 
signal Segmentation fault (11)

Reproduce code:
$o = new OAuth('x', 'x');
$o->fetch('', array('x'));

Expected result:
Something other than a segfault.
Perhaps an exception suggesting that an associative array is 

Actual result:
In Google Chrome:
Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.

In Apache error log:
[Thu Apr 29 10:57:30 2010] [notice] child pid 13450 exit 
signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-28 21:22 UTC]
Can you please try trunk? This was a bug fixed by datibbaw@ 
and will be in the next release (which will be coming 
 [2010-05-03 09:50 UTC]
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 10:03:41 2023 UTC