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: Open
Type: Bug
Package: Reproducible crash
Operating System: win 7
-PHP Version: 5.4.5-dev
+PHP Version: 5.4.4-snap
Block user comment: N
Private report: N
New Comment:
Thanks! Tried this one too. Still crashing when I uncomment the use ... as ...
code.
Previous Comments:
------------------------------------------------------------------------
[2012-06-11 02:10:05] j dot amend at gmail dot com
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
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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