Bug #62234 [Com]: PHP crashes if a trait + alias is used.
| From: | j dot amend at gmail dot com | Date: | Mon, 11 Jun 2012 02:10:05 +0000 |
| Subject: | Bug #62234 [Com]: PHP crashes if a trait + alias is used. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171185@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62234&edit=1
ID: 62234
Comment by: j dot amend at gmail dot com
Reported by: manchokapitancho at gmail dot com
Summary: PHP crashes if a trait + alias is used.
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:
The Windows snapshots page seems to be broken since the git migration
(https://bugs.php.net/bug.php?id=61712). I found the latest snapshot here though:
http://windows.php.net/downloads/snaps/php-5.4/r51a5e98/php-5.4-nts-windows-vc9-x86-r51a5e98.zip
Previous Comments:
------------------------------------------------------------------------
[2012-06-06 12:02:44] manchokapitancho at gmail dot com
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.
------------------------------------------------------------------------
[2012-06-06 08:09:30] laruence@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.
------------------------------------------------------------------------
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