forked from php/php-src
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #62358 (Segfault when using traits a lot)
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--TEST-- | ||
Bug #62358 (Segfault when using traits a lot) | ||
--SKIPIF-- | ||
<?php | ||
if (getenv("USE_ZEND_ALLOC") !== "0") { | ||
die("skip Need Zend MM enabled"); | ||
} | ||
?> | ||
--FILE-- | ||
<?php | ||
|
||
trait T { | ||
public function foo() { | ||
echo "from T"; | ||
} | ||
} | ||
|
||
interface I { | ||
public function foo(); | ||
} | ||
|
||
abstract class A implements I{ | ||
use T; | ||
} | ||
|
||
class B extends A { | ||
public function foo($var) { | ||
} | ||
} | ||
?> | ||
--EXPECTF-- | ||
Strict Standards: Declaration of B::foo() should be compatible with A::foo() in %sbug62358.php on line %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters