IMO Warning level errors are still important errors. If there is no haystack then the function should not be called, and maybe even something alternative should be done. input validation is important.
On 3/2/07, Alejandro Borges <[EMAIL PROTECTED]> wrote:
In any case, the mbstring notice is not an error but a warning. This means it doesnt necesarily cause a problem. There is a var in php.ini to make it log warnings to the apache log or even syslog, and not directly embed them on the page. ----- "Chris Weiss" <[EMAIL PROTECTED]> escribió: > On 3/1/07, uwe wrote: > and now I have many errors. Iam working with Fedora Core 6 --> i made > the patch but sudenly I got errors like this: > > > > Warning: mb_stristr() [function.mb-stristr]: Empty haystack in > /opt/lampp/htdocs/phpgroupware/phpgwapi/inc/class.data_cleaner.inc.php > on line 72 > > > > what action caused the error? > > > First of all when I login as admin I got this error Fatal error: > Allowed memory size of 8388608 bytes exhausted (tried to allocate > 77824 bytes) in > /opt/lampp/htdocs/phpgroupware/email/inc/class.bopreferences.inc.php > on line 992 > > memory_limit = 8M is pretty small, especially with php5. I > recommend > 20M, and if you plan on using the email app, 50M. Reason is that to > decode MIME attachments it has to load the whole email in memory, > then > decode it in memory as well. Since MIME has about a 20% overhead, > that means a single 1Meg attachment (typical photo) would require > 2.2M > ram just for the photo, and you still gotta have ram for the rest of > the email, and scripts, and the templates, and the database > connection, and the IMAP connection, and php itself. > > Just for reference, dotdeb.org's php5 packages come with the default > memory limit of 128M, though I don't know why they have it THAT high. > > > _______________________________________________ > phpGroupWare-developers mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/phpgroupware-developers _______________________________________________ phpGroupWare-developers mailing list [email protected] http://lists.gnu.org/mailman/listinfo/phpgroupware-developers
_______________________________________________ phpGroupWare-developers mailing list [email protected] http://lists.gnu.org/mailman/listinfo/phpgroupware-developers
