phpscript crash on php5ts.dll

Posted by Vchat20 on Fri 03 Nov 2006 04:51 AM — 4 posts, 15,619 views.

USA #0
So I have been a big advocate of using the php scripting ability of mushclient and so far things have been going really well.

My first php script was basically a long winded function that did a 'Now playing' display on a specified channel for the MUSH's affiliated web station. This basically involved the script going to an external database every 5 seconds and checking for a new playing song. If a new one is listed, it displays it on a channel. If not, it loops back to stage 1.

This ran on version 5.1.6 of php and it ran without a hitch.

Now I am working on a similar script to do the same thing with winamp but even with the code validating, mushclient keeps crashing on php5ts.dll . Only thing I can guess is I have since upgraded to php 5.2.0 (the same php installation is used for a production web server, just fyi).

Any ideas? Or should I take my chances and downgrade back to 5.1.6 for this?
Australia Forum Administrator #1
In situations like this, it is probably something in the scripting DLL, over which I have no control. All of the script languages, except Lua, are implemented using the Microsoft Scripting interface, so there is no "PHP-specific" code, that might have somehow stopped working.

You could try downgrading, to see if the problem goes away, then maybe post a query to the PHP script site.

Alternatively, something like you describe could be done in Lua, there have been posts here about querying a database from Lua.
USA #2
Actually, I sort of solved the problem shortly after posting and that was I was 5.2.0 code under C:\php\ while the activescript dll under mushclient was still 5.1.6 . Once I upgraded the activescript dll to the 5.2.0 version.

I also had a similar issue afterwards where JUST the php5ts dll was at the older version (wouldnt overwrite because somehow mushclient had it locked and in use) and was causing a mess of crashes.

After all that was sorted, its all been running fine.

And TBH, the only reason why I use php is because its about the only scripting language that MC supports that I know well and so far its been working just fine for my uses so :/
Australia Forum Administrator #3
Ah yes, incompatible DLLs will do that to you.