wayne88qiyuan / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Bug: Google_Account class should be inside namespace #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using Analytics API and Adsense API together
2. Write this code:
include_once '/google-api-php-client/src/contrib/Google_AdsenseService.php';
include_once '/google-api-php-client/src/contrib/Google_AnalyticsService.php';
3.

What is the expected output? What do you see instead?
I expect no error. But I get this error:
Fatal error: Cannot redeclare class Google_Account in
   /var/www/vhosts/example.com/httpdocs/google-api-php-client  
  /src/contrib/Google_AnalyticsService.php on line 379

What version of the product are you using? On what operating system?
Linux, PHP 5.3.16, Google API PHP Client 0.6.0

Please provide any additional information below.
I think "Google_Account" class should be inside a namespace. Else Analytics API 
and Adsense API conflicts.

Original issue reported on code.google.com by skfra...@gmail.com on 18 Jan 2013 at 7:01

GoogleCodeExporter commented 8 years ago

Original comment by ianbar...@google.com on 22 Mar 2013 at 4:48