﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
7671,Plugin fatal error yields irrelevant error message from WordPress,omry,anonymous,"The following plugin demonstrates the problem.
it dies with the error '123', but wp 2.6 outputs the following gem:

{{{
Fatal error: Cannot redeclare bogus_activate() (previously declared in /home/omry/dev/php/wp/2.6/wp-content/plugins/hello.php:13) in /home/omry/dev/php/wp/2.6/wp-content/plugins/hello.php on line 13
}}}

{{{
<?php
/*
Plugin Name: Bogus plugin
Plugin URI: bogus.org
Description: The bogus plugin from hell
Author: Ya
Version: 666.6
Author URI: nope.org
*/

$plugin_name = substr(__FILE__, strlen(ABSPATH . PLUGINDIR . '/'));
add_action(""activate_$plugin_name"",'bogus_activate');
function bogus_activate(){die('123');}


?>
}}}
",defect (bug),closed,normal,2.7,Plugins,2.7,normal,fixed,,
