Comment 7 for bug 537295

Revision history for this message
Greg (gregfr) wrote :

Actually ereg functions are deprecated but still usuable. So you have 2 possibilities :

- either silent the warnings ( error_reporting(0); )

- or change every (about 25) ereg with preg ; for example

./plugins/PHPDevShell/scripts/user-admin/user-admin-list.php (line 92):

     $extra_role_constant = ereg_replace(' ', ' ', $extra_role_db_array['user_role_name']);

replace by

     $extra_role_constant = preg_replace('/ /', ' ', $extra_role_db_array['user_role_name']);

not the syntax is slightly different, the pattern in preg_replace is surrounded by slashes.

greg