Re: Fatal error: Call-time pass-by-reference has been removed in /usr/local/share/refdb/www/index.php on line 1531
Markus Hoenicka <[email protected]> Wed, 06 Jun 2012 11:20:20 +0200
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
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" <[email protected]> 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/