|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-24 11:13 UTC] dmitry@php.net
[2006-03-27 09:33 UTC] dmitry@php.net
[2006-09-26 22:37 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 03:00:02 2025 UTC |
Description: ------------ If a cast operator inside try {} block throws an exception, the result of casting is never destructed and, thus, a memory leak happens. Reproduce code: --------------- <?php $u = "abc \udc00 def\n"; try { echo (binary)$u; } catch(UnicodeConversionException $e) { } ?> INI settings: unicode_semantics = on unicode.output_encoding = latin-1 unicode.runtime_encoding = latin-1 unicode.from_error_mode = U_CONV_ERROR_STOP | U_CONV_ERROR_EXCEPTION Expected result: ---------------- no output Actual result: -------------- [Thu Mar 23 23:49:50 2006] Script: 't.php' /homes/andrei/dev/php-src/Zend/zend_unicode.c(253) : Freeing 0x013EC764 (11 bytes), script=t.php === Total 1 memory leaks detected ===