Strange dl("php_mapscript.so") behavior

Stefan Schwarzer stefan.schwarzer at GRID.UNEP.CH
Thu Feb 16 08:49:16 PST 2006


No, it's not PHP. It's related with Mapserver. Actually, I have only  
updated the gislibs and postgres with your packages. So, stupid me, I  
haven't controlled the testphp.php - so there seems to be the  
problem. I will update now all packages with your latest ones.... and  
hopefully this helps!

Stef


> does the testphp.php work?  (loads mapscript and calls phpinfo)
>
> I've had mysterious issues like this in the past.  One correct line  
> causes the whole thing to implode and disappear.  Yet the problem  
> turns out to be somewhere else.  I've cleaned up code a bit and  
> that helps.  Let's see if I can remember...
>
> I hope we're not getting too far off topic here.
>
> The main thing I've found that tends to kill PHP is continuing  
> lines.  Like when you concatenate strings together (these are  
> separate lines):
>
> $z = 'part of a string' . $somevariable .
> 'some more';
>
> I think this is correct PHP, PHP is supposed to keep going across  
> line breaks until it find the semicolon to close the statement, and  
> it works most of the time, but sometimes it's enough to kill PHP.   
> If you need to break lines to make it more readable, close the  
> statement and start again on the next line:
>
> $z = 'part of a string' . $somevariable;
> $z .= 'some more';
>
> On Feb 16, 2006, at 10:09 AM, Stefan Schwarzer wrote:
>
>> Hi William,
>>
>> happy that I was that my database was with your help up-and- 
>> running again, I attacked my postgres plus now postgis conversion.  
>> And whoops,... no more map display. I am shocked!! :-)
>>
>> Ok, I tried it with only
>>
>> 	dl("php_mapscript.so");
>>
>> But in vain. Still same result. Nothing displays. Not even a  
>> simple echo.
>>
>> The apache and sys log don't give any results either. Once I had a  
>> "LOG:  unexpected EOF on client connection" displayed, but it  
>> disappeared suddenly...
>>
>> Gush, what is this magic, that makes disappear everything on my  
>> page?!?!
>>
>> Stef
>>
>
> -----
> William Kyngesburye <kyngchaos at kyngchaos.com>
> http://www.kyngchaos.com/
>
> "I ache, therefore I am.  Or in my case - I am, therefore I ache."
>
> - Marvin



More information about the MapServer-users mailing list