ID: 49579 Updated by: j...@php.net Reported By: andrea dot barani at tin dot it -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 7 (x64) PHP Version: 5.3.0 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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