Re: Bug: Redaclare of Google_Account class

23 views
Skip to first unread message

Jose Alcérreca (AdSense API Team)

unread,
Jan 22, 2013, 5:26:34 AM1/22/13
to adsen...@googlegroups.com
Hi!

I see you already reported it. We'll keep an eye on that one.

Thanks!
Jose


---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers.google.com/adsense


On Friday, 18 January 2013 18:55:11 UTC, mercury22 wrote:
I use "Google APIs Client Library for PHP"
But when I use Adsense and Analytics API I get errors.
when I made this:
include_once '/google-api-php-client/src/contrib/Google_AdsenseService.php';
include_once '/google-api-php-client/src/contrib/Google_AnalyticsService.php';

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

Because both of the php files has a class named "Google_Account".
That class is not inside a namespace so PHP says it couldn't redeclare it.

I suppose it is a bug and reporting it.

(I would be happy if you can tell me, if there exists any other way to report this bug)

Reply all
Reply to author
Forward
0 new messages