Comment 10 for bug 537295

Revision history for this message
darwin (darwin-liem) wrote : Re: [Bug 537295] Re: installation stuck on undefined offset for error handler

hi,

i know hoe to change ereg_replace to preg_replace as you instructed and i find how to chnage eregi_replace with addition /i on the last patern.... but how to change ereg() ? preg_match()?

 Best Regards
Darwin Liem

________________________________
From: Greg <email address hidden>
To: <email address hidden>
Sent: Fri, March 12, 2010 4:45:46 PM
Subject: [Bug 537295] Re: installation stuck on undefined offset for error handler

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(' ', '&nbsp;',
$extra_role_db_array['user_role_name']);

replace by

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

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

greg

** Changed in: phpdevshell
       Status: New => Fix Committed

** Changed in: phpdevshell
     Assignee: (unassigned) => Greg (gregfr)

--
installation stuck on undefined offset for error handler
https://bugs.launchpad.net/bugs/537295
You received this bug notification because you are a direct subscriber
of the bug.

Status in Open Source php gui type development framework.: Fix Committed

Bug description:
after i do installation it stuck on this
Undefined offset: 8192 in C:\Program Files\EasyPHP5.3.0\www\orbytz-online.com_ver0.24\admin\system\includes\errorHandler.class.php on line 217
Fatal error: Exception thrown without a stack frame in Unknown on line 0

i try to fix it but i cant simply find where and why does it is stuck

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/phpdevshell/+bug/537295/+subscribe