Summary: | Writing an Closure Function "construct" and then kdevelop4 (Version 4.3) [PHP] crashed. | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Tobias Hochgürtel <tobias.hochguertel> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 4.2.60 | ||
Target Milestone: | 4.2.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | kcrash Report while reproducing |
Description
Tobias Hochgürtel
2011-02-24 23:01:51 UTC
Created attachment 57534 [details]
kcrash Report while reproducing
Here the following PHP-Code reproduces the Error/Crash for me, <CODE> <?php class A { public function foo() { return function ($v) use () { return $v > 2; }; } } ?> </CODE> If I write the Lambda/Closure Function with Empty Part inside of the Braces for "use", kdevelop-4.3 (PHP) crashs directly. Git commit 0e2bace11c542b5722870c706148177764092651 by Milian Wolff. Committed on 28/02/2011 at 21:20. Pushed by mwolff into branch '1.2'. don't crash when encountering empty use-list in a closure PHP does not support this either, so properly report an error there BUG: 267105 M +1 -1 duchain/expressionvisitor.cpp M +11 -0 duchain/tests/duchain.cpp M +1 -0 duchain/tests/duchain.h M +1 -1 parser/php.g http://commits.kde.org/kdev-php/0e2bace11c542b5722870c706148177764092651 |