Hi

I am about to do Drupal 6 module and theme development.

Is there a resource where I can find how to setup Zend Studio for Eclipse 6.1 to perform this development and debugging?

Thanks

Jeff in Seattle

Comments

jeff00seattle’s picture

I have:

  • Red Hat EL 5
  • Apache 2.2
  • PHP 5.2

I read all of the following:

And I got it working

NOTE: I had found that the ZendDebugger.so that came with Zend Studio for Eclipse 6.1.1 did not work, and would not expose with phpinfo.php:

Failed loading /usr/local/Zend/ZendStudioForEclipse-6.1.1/./plugins/org.zend.php.debug.debugger.linux.x86_5.2.15.v20080907/resources/php5/ZendDebugger.so: /usr/local/Zend/ZendStudioForEclipse-6.1.1/./plugins/org.zend.php.debug.debugger.linux.x86_5.2.15.v20080907/resources/php5/ZendDebugger.so: wrong ELF class: ELFCLASS32

Jeff in Seattle

afroyd’s picture

Can you describe please how you got this error with Zend debugger? We will be happy to assist or solve the problem for the next version.
Did you try debug from Studio or did you try to load it in the web server? What OS and architecture (32/64 bit) are you using?

Amir
QA engineer at Zend

jeff00seattle’s picture

Hi Amir

Thank you for reading my submittal.

  • cat /etc/redhat-release

    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
  • uname -a

    Linux localhost.localdomain 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:58:24 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
  • cat /proc/version

    Linux version 2.6.18-128.1.1.el5 (mockbuild@ls20-bc2-14.build.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Mon Jan 26 13:58:24 EST 2009
  • httpd -v

    Server version: Apache/2.2.3
    Server built:   Nov 12 2008 07:09:03
  • phpinfo()

    PHP Version 5.2.9
  • php -v

    PHP 5.2.9 (cli) (built: Feb 27 2009 15:00:56) 
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
        with Zend Debugger v5.2.15, Copyright (c) 1999-2008, by Zend Technologies
  • Download and installed ZendStudioForEclipse_6_1_1.bin
  • Within /usr/local/Zend/ZendStudioForEclipse-6.1.1, tried to use ZendDebugger.so here:

    ./plugins/org.zend.php.debug.debugger.linux.x86_5.2.15.v20080907/resources/php4/ZendDebugger.so

    I tried loading it from php.ini, and apache restart logged failure upon in error.
  • Used instead ZendDebugger.so here:

    http://downloads.zend.com/pdt/server-debugger/

    Loaded fine and ZendDebugger info showed up in phpinfo()

Can I assume this is enough information?

Jeff in Seattle

afroyd’s picture

Lots of good information :)
Now I see the problem:
Zend studio and all the PHP and modules it supllies are 32 bit and intended for internal studio usage.
When you tried to load the 32 bit debugger inside the 64 bit Apache - you got the error. This is perfectly Ok considering the architecture mismatch.
The right way to solve it is exactly what you did, going to http://downloads.zend.com/pdt/server-debugger/ and downloading the right architecture debugger.

Do you think we can do something better to prevent this problem in the future?

jeff00seattle’s picture

Hi Mr. Zend QA

Should I used this one: ZendDebugger-5.2.14-linux-glibc23-x86_64.tar.gz?

As far as doing something better?

It would have been extremely helpful and less wasting of my time hunting around for the proper ZendDebugger binary if the following had occurred during Zend Studio 6.1 install:

  1. Carry all server-debugger ZendDebugger binary versions (Ubuntu, RedHat, Windows, 32bit, 64bit, etc...) that are verified to work with the installing Zend Studio application.
  2. At install, determine the architecture (like I did)
  3. Determine what is the proper ZendDebugger binary to use
  4. Declare a path to be used within php.ini
  5. Modify php.ini with this ZendDebugger.so path either by:
    1. automatically at install
    2. Tell user to modify

In addition, since FireFox is the debug browser of choice, at install of Zend Studio:

  1. Check for the FireFox
  2. Download or upgrade FireFox expect version
  3. Install Add-on Zend Studio Toolbar
  4. Install any other helpful open source Add-ons

Thanks

Jeff in Seattle