|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2012-03-14 12:20 UTC] tony2001@php.net
-Status: Open
+Status: Feedback
[2012-03-14 12:20 UTC] tony2001@php.net
[2012-03-14 15:14 UTC] tony2001@php.net
[2012-03-14 15:14 UTC] tony2001@php.net
-Status: Feedback
+Status: Open
[2012-03-14 15:16 UTC] sam at rmcreative dot ru
[2012-03-14 17:20 UTC] tony2001@php.net
[2012-03-16 15:03 UTC] tony2001@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: johannes
[2015-06-17 14:17 UTC] cmb@php.net
-PHP Version: 5.4.0
+PHP Version: 7.0.0
[2015-06-17 14:17 UTC] cmb@php.net
[2015-06-17 14:43 UTC] johannes@php.net
-Status: Assigned
+Status: Open
-Assigned To: johannes
+Assigned To:
[2015-06-17 15:01 UTC] cmb@php.net
-Status: Open
+Status: Analyzed
[2015-06-17 20:31 UTC] nikic@php.net
[2015-06-17 20:31 UTC] nikic@php.net
-Status: Analyzed
+Status: Closed
[2015-06-23 18:04 UTC] ab@php.net
[2016-07-20 11:38 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Description: ------------ Exception::getTraceAsString, Exception::__toString are not able to properly handle unicode in stack trace. Instead of showing actual argument values it's giving ???? in case value is unicode. Tested on PHP 5.3 and PHP 5.4. Test script: --------------- <?php function test($arg){ throw new Exception(); } try { test('тест'); } catch(Exception $e) { echo $e->getTraceAsString(); echo (string)$e; } Expected result: ---------------- d:\web\usr\local\php54>php.exe d:\src\exception_wrong_trace\test.php #0 D:\src\exception_wrong_trace\test.php(7): test('тест') #1 {main}exception 'Exception' in D:\src\exception_wrong_trace\test.php:3 Stack trace: #0 D:\src\exception_wrong_trace\test.php(7): test('тест') #1 {main} Actual result: -------------- d:\web\usr\local\php54>php.exe d:\src\exception_wrong_trace\test.php #0 D:\src\exception_wrong_trace\test.php(7): test('????') #1 {main}exception 'Exception' in D:\src\exception_wrong_trace\test.php:3 Stack trace: #0 D:\src\exception_wrong_trace\test.php(7): test('????') #1 {main}