#65 Call-time pass-by-reference has been deprecated

1.3.x
closed
Reini Urban
None
5
2012-10-11
2004-01-11
Anonymous
No

I am in the process of moving my site from one host to
another. Both servers are running FreeBSD 4.x and
MySQL 3.x. After importing the MySQL data and all the
files for phpWiki, I load the page. At the top of the
page I get a long list of errors (see below), but
underneath the errors it does render the homepage.
Have I set something up wrong? The only difference I
can see between the two hosts is that the new one has
MySQL on a different server than my home directory,
whereas the old one was on the localhost.

Thanks,
Ben.


The errors:

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php on
line 1096

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php on
line 1097

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
explodelist(). If you would like to enable call-time
pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php on
line 1114

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/WikiUser.php
on line 335

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/WikiUser.php
on line 353

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/WikiUser.php
on line 362

Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration of
runtime function name. If you would like to enable
call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this any
longer. in
/usr/www/users/bjudson/wiki.eatworms/lib/WikiUser.php
on line 372

lib/Request.php:240: Warning[2]: session_start():
Cannot send session cookie - headers already sent by
(output started at
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php:1096)

lib/Request.php:240: Warning[2]: session_start():
Cannot send session cache limiter - headers already
sent (output started at
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php:1096)

lib/display.php:135: Warning[2]: Cannot modify header
information - headers already sent by (output started
at
/usr/www/users/bjudson/wiki.eatworms/lib/stdlib.php:1096)

Discussion

  • Logged In: YES
    user_id=252428

    New server needs to set allow_call_time_pass_reference true
    in php.ini

     
  • Reini Urban
    Reini Urban
    2004-05-08

    Logged In: YES
    user_id=13755

    We are slowly working to allow
    allow_call_time_pass_reference = false. It even runs on
    php-5.0.0.RC2

    In the meantime you have to enable it.