Hi,
I just installed php from 4.0.6 to 4.2.1, but unfortunately my project
isn't working anymore as before.
There is one example appended. A function ExtractExpLinks breaks. PHP just
stops interpreting the inc-file where this snipout was located in.
Another problem was that one of my php scripts isn't executed at all. I
don't know what's going on. Did anybody hear about caching problems or
something like that?
Marko
---snip---
function ExtractExpLinks( $s= "" )
{
global $ExpNames,$ExpNr;
$ret=TRUE;
$i=0;
unset($ExpNames[],$ExpNr[]);
echo '<P CLASS=dbg>';
while($ret)
{
$ret=ereg("E:{([^}]+)}{([^}]+)}",$s,$arg);
if ($ret)
{
$ExpNr[$i]=$arg[1];
$ExpNames[$i++]=$arg[2];
$s=str_replace($arg[0],'',$s);
}
}
return $i;
}
|