Bug #77340 [Opn->Fbk]: autoload class named with unicode in loop is crashed

From: Date: Sun, 23 Dec 2018 05:19:28 +0000
Subject: Bug #77340 [Opn->Fbk]: autoload class named with unicode in loop is crashed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218581@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77340&edit=1 ID: 77340 Updated by: laruence@php.net Reported by: happycock at 163 dot com Summary: autoload class named with unicode in loop is crashed -Status: Open +Status: Feedback Type: Bug Package: SPL related Operating System: MacOS Mojave 10.14.2 PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. I can not reproduce this... Previous Comments: ------------------------------------------------------------------------ [2018-12-23 04:24:20] happycock at 163 dot com Description: ------------ When autoload class named with unicode in loop, the second load is crashed. Class named with ASCII is ok. Autoload not in loop is ok. Test script: --------------- https://pan.baidu.com/s/1QWAdF7bloa8ZCkuviHmFjQ ç±»1.php: <?php class ç±»1{} ç±»2.php: <?php class ç±»2{} t1_crash.php: <?php spl_autoload_register(); $array = ["ç±»1", "ç±»2"]; function test($name) { echo $name . "\n"; return new $name; } foreach ($array as $key => $value) { test($value); } Expected result: ---------------- ç±»1 ç±»2 Actual result: -------------- ç±»1 ç±»2 Segmentation fault: 11 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77340&edit=1

« previous php.bugs (#218581) next »