ID: 49579 User updated by: andrea dot barani at tin dot it Reported By: andrea dot barani at tin dot it Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 7 (x64) PHP Version: 5.3.0 New Comment:
Sorry for double submission, I've searched for a similar bug but haven't found it. I read your comment on the other bug entry and checked out source code, but i don't get the point to make it intentional. We have to retest our whole code with display_errors=off in order to check for errors that otherwise won't be displayed? :S Anyway thank you for your response. :) Previous Comments: ------------------------------------------------------------------------ [2009-09-18 13:00:58] j...@php.net See bug #47494 and my comment there for reason. Another reason for this to be bogus: you failed to search before submitting another report about same issue. ------------------------------------------------------------------------ [2009-09-17 17:06:29] andrea dot barani at tin dot it Description: ------------ The warning message is only generated when display_errors = off Tested using Apache 2.2.13 (win32) Reproduce code: --------------- echo htmlspecialchars(chr(224), ENT_COMPAT, 'utf-8'); Expected result: ---------------- PHP Warning: htmlentities(): Invalid multibyte sequence in argument in [...] on line [...] Actual result: -------------- display_errors = Off -> The error message is logged but not displayed (correct) display_errors = On -> No error message is neither displayed nor logged (buggy?) Obviously assuming log_errors = On. With a custom error handler and display_errors = off the handler is called and the error informations are correct. If display_errors = on the custom error handler isn't called. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49579&edit=1