For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > February 2006 > Cannot redeclare class in PEAR Packages with Zend Debugger









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Cannot redeclare class in PEAR Packages with Zend Debugger
Druid

2006-01-30, 7:58 am

Hello Guys,

I want to debug my application using Zend Studio debugger in server mode.
When i try to debug a page using Zend Firefox extension (or debug URL in
Zend Studio itself) i got an:

Cannot redeclare class pear_config in C:\php\PEAR\PEAR\Config.php on line 2052

after disabling this require_once, another error appears:

Cannot redeclare class pear_validate in C:\php\PEAR\PEAR\Validate.php on line 46

What is interesting, this configuration works without debugger.

Other packages i use (html_quickform, db, mail) seems to work correctly.

My configuration:
Apache 1.3.33
PHP 5.1.2 (checked also with 5.1.1)
Zend Studio Professional 5.1 + Zend Studio Server 5.1
WindowsXP Professional

I've tried the solution similar according to this:

http://www.zend.com/support/knowled...=81&view_only=1

updated all found php.ini files according to this but no effect.

Anyone has an idea what's wrong ?

--
drooid
Greg Beaver

2006-02-01, 7:01 pm

Druid wrote:
> Hello Guys,
>
> I want to debug my application using Zend Studio debugger in server
> mode. When i try to debug a page using Zend Firefox extension (or debug
> URL in Zend Studio itself) i got an:
>
> Cannot redeclare class pear_config in C:\php\PEAR\PEAR\Config.php on
> line 2052
>
> after disabling this require_once, another error appears:
>
> Cannot redeclare class pear_validate in C:\php\PEAR\PEAR\Validate.php on
> line 46
>
> What is interesting, this configuration works without debugger.
>
> Other packages i use (html_quickform, db, mail) seems to work correctly.
>
> My configuration:
> apache 1.3.33
> PHP 5.1.2 (checked also with 5.1.1)
> Zend Studio Professional 5.1 + Zend Studio Server 5.1
> WindowsXP Professional
>
> I've tried the solution similar according to this:
>
> http://www.zend.com/support/knowled...=81&view_only=1
>
> updated all found php.ini files according to this but no effect.
>
> Anyone has an idea what's wrong ?


I've encountered this many times with Zend Debugger. The solution was
to reboot, which fixed some internal corruption in ZDE. You may want to
report this to Zend if you are so inclined (I'm too lazy since it is
fixed on reboot :)

Greg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com