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/
Michael T
Member
Plugin Author
Posted 1 year 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.
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.