Re: [Refdb-users] Fatal error: Call-time pass-by-reference has been removed in /usr/local/share/ref
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2012-06-06 09:35:49
|
Hi, as far as I can see this problem is caused by a change between PHP 5.3 and 5.4 regarding the mechanism how variables are passed by reference. I do not have a PHP interface up and running at this time, so the following is untested. Could you please check whether the following change in /usr/local/share/refdb/www/index.phpfixes the problem? The line in question is 1786 in my sources, although you mention 1531 instead. - if (!yaz_ccl_parse($id[$i], $term, &$cclresult)) { + if (!yaz_ccl_parse($id[$i], $term, $cclresult)) { (note the missing ampersand). According to what I read about this issue on the web, PHP should be able to figure out by itself how to pass the variable appropriately, and the syntax using the ampersand has been removed in PHP 5.4. regards, Markus "O. Hartmann" <oha...@ze...> was heard to say: > A couple of days ago all of our FreeBSD boxes where forced to update > their ports recompiling all PNG dependencies. > > After those updates, on ALL of our boxes providing the RefDB > webinterface, this webinterface, PHP5, has been gone. > > I put one of the servers via php.ini into "development" mode reporting > errors, since the servers in questions do show a white page with nothing > otherwise. > > I get this: > > Fatal error: Call-time pass-by-reference has been removed in > /usr/local/share/refdb/www/index.php on line 1531 > > The line in question seems to refer to YAZ: > > if (!yaz_ccl_parse($id[$i], $term, &$cclresult)) { > ... } > > I tried to recompile refdb via > portmaster -f refdb > > as well as PHP > > portmaster -f php5-5 > > but there is no solution doing it that way. > > Since RefDB worked fine before, I guess this is a unconvenience brought > in by the port's updating orgy. > > Regards > Oliver -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 |