Bug #77340 [NEW]: autoload class named with unicode in loop is crashed

From: Date: Sun, 23 Dec 2018 04:24:20 +0000
Subject: Bug #77340 [NEW]: autoload class named with unicode in loop is crashed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218577@lists.php.net to get a copy of this message
From: happycock at 163 dot com Operating system: MacOS Mojave 10.14.2 PHP version: 7.3.0 Package: SPL related Bug Type: Bug Bug description:autoload class named with unicode in loop is crashed 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 bug report at https://bugs.php.net/bug.php?id=77340&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77340&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77340&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77340&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77340&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77340&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77340&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77340&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77340&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77340&r=support Expected behavior: https://bugs.php.net/fix.php?id=77340&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77340&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77340&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77340&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77340&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77340&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77340&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77340&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77340&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77340&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77340&r=mysqlcfg

« previous php.bugs (#218577) next »