|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-28 21:22 UTC] jawed@php.net
[2010-05-03 09:50 UTC] datibbaw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 02:00:01 2025 UTC |
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)