PHP Classes

Bug on line 1671 in oauth_client.php, v1.66

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Bug on line 1671 in...  >  (Un) Subscribe thread alerts  
Subject:Bug on line 1671 in...
Summary:$this->url_parameters = true; // should be false
Messages:2
Author:John Erck
Date:2013-07-12 15:32:48
Update:2013-07-13 04:23:19
 

  1. Bug on line 1671 in...   Reply   Report abuse  
Picture of John Erck John Erck - 2013-07-12 15:32:48
Hi Manuel,
Really awesome package. Thank you.

I found a bug in the prepackaged Bitbucket settings.

Bug on line 1671 in oauth_client.php, v1.66

Line 1671: $this->url_parameters = true; // should be false

<?php
// To reproduce bug:
$client->server = 'Bitbucket'; // This setting triggers bug
$client->callAPI(
'https://api.bitbucket.org/1.0/repositories',
'POST',
array('name' => 'new_repo_via_api'),
array(
'FailOnAccessError' => true,
'PostValuesInURI' => false, // This did not override $client->url_parameters
),
$new_repo_response // $new_repo_response var setter
);
?>

  2. Re: Bug on line 1671 in...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-07-13 04:23:19 - In reply to message 1 from John Erck
Yes, you are right. Actually I never tried BitBucket with parameters that would complain.

The problem is fixed now in the next version to be uploaded soon.