gmap demo : Fatal error: Object expected as argument. in /home/ii/mapserver/gmap/htdocs/gmap75.php3 on line 696

Angus D Madden adm at imexis.com
Thu Feb 22 18:59:03 EST 2001


Daniel Morissette wrote:
> 
> 
> What do you have on line 696?  Is it a call to $gpoMap->SetExtent()?

Yes, same as default install.

> 
> The error means that the $gpoMap PHP object is corrupted or has been
> flushed somehow by the PHP engine... I never saw this before... it could
> be related to new variables management features (like reference
> counting) added recently in PHP4... but I'm surprised because I know
> that the module has been used without problems by others using
> PHP4.0.4pl1.

I tried changing the path to gmap75.map, no effect.  The really strange
thing is that it works the first time it is called in the browser, but
then stops working after that.  very wierd.

> 
> I'll keep a note about that bug and will try to have a look as soon as I
> can (not sure when though!).

Thanks.  This is a good opportunity for me to learn the code, which I'll
have to do anyway.  I was just hoping that someone had seen this before
and there was a quick fix.

> 
> BTW, the following info could probably help in reproducing the problem:
> - Do you use the default php.ini-dist settings or did you edit php.ini?
> - Is PHP4's thread-safe and/or debug enabled?  (See phpinfo() output)
> - What are your PHP configure options?
> 

php.ini is the same as php.ini-dist except that the setting for
extension_dir has changed.

php configure:
'./configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=system' '--with-config-file-path=/etc/php4/apache'
'--disable-rpath' '--enable-memory-limit' '--enable-calendar'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--disable-debug' '--disable-static'
'--with-curl=shared,/usr' '--with-db2' '--with-ndbm'
'--with-dom=shared,/usr' '--enable-exif' '--enable-filepro'
'--enable-ftp' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6'
'--with-ldap=shared,/usr' '--with-mm' '--with-mhash=shared'
'--with-mysql=shared,/usr' '--with-pcre-regex=/usr' '--enable-shmop'
'--enable-sockets' '--with-ttf' '--with-t1lib' '--with-xml=shared,/usr'
'--with-yp' '--enable-dbase'  

mapserver configure:
'./configure' '--with-tiff=/usr' '--with-jpeg=/usr' '--with-ttf=/usr'
'--with-php=../php-4.0.4pl1' '--with-axps=/usr/bin/axps'  

Thanks,

Angus



More information about the mapserver-users mailing list