WordPress.org

Ready to get started?Download WordPress

Forums

Table of Contents Plus
Deprecation Warning - a note for next update (3 posts)

  1. anmari
    Member
    Posted 2 years ago #

    Interesting plugin. I just activated so not tested much yet. I develop/test with all debugs on. Thought you might like to know the plugin generates a warning.

    Warning: Call-time pass-by-reference has been deprecated; 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 in C:\web\wpbeta\wp\wp-content\plugins\table-of-contents-plus\toc.php on line 996

    http://wordpress.org/extend/plugins/table-of-contents-plus/

  2. Mike
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for raising this. I'll check it out but could you let me know the platform you're on? eg version of Apache/Nginx/other, PHP, MySQL? I noticed you're running this on Windows.

    I haven't come across this before but I've always used Linux and I have WP_DEBUG enabled with the debug bar. I also do not have allow_call_time_pass_reference enabled either.

  3. anmari
    Member
    Posted 2 years ago #

    G'day Michael

    It's a php version thing, not a wordpress thing,
    http://au.php.net/language.references.pass: says

    As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.

    However my local install is only on: Apache/2.2.6 (Win32) PHP/5.2.5, so perhaps message happens earlier?

    it is the ampersand in

    if ( $this->options['show_heirarchy'] ) $items = $this->build_hierarchy( &$matches );

    Google :
    http://www.google.com.au/search?q=php+Warning%3A+Call-time+pass-by-reference+has+been+deprecated%3B

    and you''ll see it is quite a common thing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic