Permalink
Browse files

Merge branch 'PHP-5.4'

  • Loading branch information...
2 parents 5ebbdec + e24194d commit 14c88ff82c1832c2e0d2c4ee49c0170cad3158d5 @laruence laruence committed Aug 26, 2012
Showing with 24 additions and 0 deletions.
  1. +24 −0 Zend/tests/bug62907.phpt
View
@@ -0,0 +1,24 @@
+--TEST--
+Bug #62907 (Double free when use traits)
+--XFAIL--
+bug is not fixed yet
+--FILE--
+<?php
+function __autoload($name) {
+ if ($name == "B") {
+ eval ("abstract class B extends A { }");
+ } else if ($name == "A") {
+ eval ("abstract class A { use T { T::__construct as __asconstruct; }}");
+ } else if ($name == "T") {
+ eval ("trait T { public function __construct() { } }");
+ }
+ return TRUE;
+}
+
+class C extends B {
+ public function __construct() {
+ }
+}
+echo "okey";
+--EXPECT--
+okey

0 comments on commit 14c88ff

Please sign in to comment.