php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul+peclbugs at annesley dot cc
New email:
PHP Version: OS:

 

 [2010-04-28 21:04 UTC] paul+peclbugs at annesley dot cc
Description:
------------
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 
Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
    with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick 
Rethans


[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('http://example.org/', array('x'));

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

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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-28 21:22 UTC] jawed@php.net
Can you please try trunk? This was a bug fixed by datibbaw@ 
and will be in the next release (which will be coming 
shortly).
 [2010-05-03 09:50 UTC] datibbaw@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 13:01:30 2025 UTC