Opened 22 years ago

Closed 21 years ago

#84 closed defect (fixed)

Zend IDE Beta 2.0 Fatal Error w/ PHP MapScript

Reported by: Chip.Hankley@… Owned by: dmorissette
Priority: high Milestone:
Component: MapScript-PHP Version: 3.6
Severity: normal Keywords:
Cc:

Description

When using the Zend IDE Beta 2.0 with PHP MapScript apps, the debugger 
generates a fatal error... apparently when it encounters a MapScript component. 
For example, "ms_newMapObj();" generates a fatal error in the debugger.

Windows 2000, IIS, PHP 4.06.

Change History (2)

comment:1 by Chip.Hankley@…, 22 years ago

This has to do with how the IDE is set up to debug. In order for the IDE to 
work with non-standard extensions (e.g. MapScript) you must use a debugger on 
your webserver (the default setup for the IDE is an internal PHP debugger that 
comes with the IDE... clearly this wouldn't recogninze MapScript commands).

To set this up, choose tools ->customization ->debug and enable the remote 
debugging in the IDE. For this to work, you will need some type of debugger 
running on the server. I choose to use Zend's debugger.

Anyway, this works fairly well. There are some quirky things about it... like

$map = ms_newMapObj("parcel.map");

looks for the file parcel.map at the root of the webserver, where as when I run 
this outside of the IDE, it would look for the file in the same directory as 
the php file.

comment:2 by dmorissette, 21 years ago

Resolution: fixed
Status: newclosed
Version: 3.53.6
Marking as FIXED.  Some of our developers use the Zend IDE debugger these days 
to debug PHP MapScript apps and things work fine at least with PHP 4.3.x and 
MapScript 3.6 and 4.0.
Note: See TracTickets for help on using tickets.