Edit report at https://bugs.php.net/bug.php?id=62234&edit=1
ID: 62234 User updated by: manchokapitancho at gmail dot com Reported by: manchokapitancho at gmail dot com Summary: PHP crashes if a trait + alias is used. -Status: Feedback +Status: Open Type: Bug Package: Reproducible crash Operating System: win 7 PHP Version: 5.4.5-dev Block user comment: N Private report: N New Comment: Tried this one: For Windows: http://windows.php.net/snapshots/ But when I click on the link (VC9 x86 Thread Safe Zip [15.27MB]) I get the following error: The page cannot be found. I hope that someone will fix the windows build links. Then I can try again. Previous Comments: ------------------------------------------------------------------------ [2012-06-06 08:09:30] larue...@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2012-06-06 06:32:09] manchokapitancho at gmail dot com Reopening... ------------------------------------------------------------------------ [2012-06-06 06:31:48] manchokapitancho at gmail dot com Sorry, my fault. The bug is still there. If I don't have aliases, everything is fine. But once I uncomment one, the error is back. Tried 5.5.0-dev and 5.4.5-dev. class XXX { use \logi\tile\html\feature { getTemplateNames as getTemplateNamesBase; } protected function getTemplateNames() { $tpls = (array)$this->getTemplateNamesBase(); array_push ($tpls, "/listing\\template"); array_push ($tpls, "admin\\listing\\template"); return $tpls; } } It is worth mentioning that the trait is autoloaded. ------------------------------------------------------------------------ [2012-06-06 06:06:54] manchokapitancho at gmail dot com My bug seems to be a duplicate of this one. https://bugs.php.net/bug.php?id=61998 I had 3 occurrences of use X as Y. After removing them, there were no more crashes. I tried the latest snapshot and I have no more problems with the original code. ------------------------------------------------------------------------ [2012-06-06 05:54:02] manchokapitancho at gmail dot com Reproduced in CLI mode. Ran the same code and simulated some $_SERVER values. I get 1:1 result so it is not Apache related. The message I get at the end of the script is: zend_mm_heap corrupted. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62234 -- Edit this bug report at https://bugs.php.net/bug.php?id=62234&edit=1