Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'PHP-5.4'

  • Loading branch information...
commit 14c88ff82c1832c2e0d2c4ee49c0170cad3158d5 2 parents 5ebbdec + e24194d
@laruence laruence authored
Showing with 24 additions and 0 deletions.
  1. +24 −0 Zend/tests/bug62907.phpt
View
24 Zend/tests/bug62907.phpt
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.