project
project summary freshmeat entry development infos mailing list WebInstaller database tools ChangeLog
page plugins
ProtectedEmail PowerSearch README README.config README.plugins README.fragments ProtectedMode INTERNALS WordIndex AboutPlugins PhpInfo OrphanedPages ListOfPluginHooks RSS RecentChanges PageIndex NewestPages SearchPages MostVisitedPages MostOftenChangedPages UpdatedPages
usage hint
9OTUNE YOGURT SÜREER AYRAN OLANA KADAR SİKERİMxD
TimBishop: I just moved a R1.01e wiki to a new computer, one that is running PHP 5.0.2, and ran into the problem with array merge described in OldBugs. Unfortunately, I am not so skilled that the following discussion about adding some typecast statements into the code was enough for me to fix it on my own.
Can you provide the exact changes I should make to the lines in ewiki.php that I am getting warnings about, or should I bite the bullet and upgrade? Or does the php5fix script in the tools directory fix the problems, and if so do you have any advice to a novice about running it in the windows environment? From browser or command line? Does it matter where the script is in relation to ewiki.php?
mario: Since you are using R1.01e I'd say, upgrading was the best solution here. There are pretty little differences between that and the recent versions. Upgrading should be easier so, because of the fewer internal and structural (file name) changes.
The php5fix script AFAIK (we removed it meanwhile) is innovocated as follows, for each single script you want to convert to PHP5 language changes:
C:/PHP/php.exe -f C:/ewiki/tools/php5fix C:/ewiki/ewiki.php
It should work the same as under Linux I think, but that you must specify the PHP command interpreter beforehand (unless you have create the commandline shortcuts, with that special system command I forgot).
The first parameter to that script is simply the name of the PHP script you want to have converted. IMO it is safe to run that under Win32, the CRLF line endings shouldn't normally confuse it. And you only have to do this for ewiki.php anyhow.
If you rather want to do it by hand, then this is simple, too. Just prepend an "(array)" before every function argument in every code line PHP complains about. For example, if there is an:
$uu = array_merge($uu[1], $uu[2], $uu[3]);
you would rewrite it into:
$uu = array_merge( (array)$uu[1], (array)$uu[2], (array)$uu[3]);
As always, thanks for your rapid and helpful response. I will upgrade eventually, but rather than have several different versions of the script, it was a lot easier to add these mods. Thanks, TimBishop: