From: andrea dot barani at tin dot it Operating system: Windows 7 (x64) PHP version: 5.3.0 PHP Bug Type: Scripting Engine problem Bug description: Strange behavior for warning "Invalid multibyte sequence in argument"
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 bug report at http://bugs.php.net/?id=49579&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49579&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49579&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49579&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49579&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49579&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49579&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49579&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49579&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49579&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49579&r=support Expected behavior: http://bugs.php.net/fix.php?id=49579&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49579&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49579&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49579&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49579&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49579&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49579&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49579&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49579&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49579&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49579&r=mysqlcfg