1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/Zend/tests/bug63305.phpt
2012-10-23 11:34:25 +08:00

44 lines
678 B
PHP

--TEST--
Bug #63305 (zend_mm_heap corrupted with traits)
--FILE--
<?php
new Attachment("");
function __autoload($class) {
switch ($class) {
case "Attachment":
eval(<<<'PHP'
class Attachment extends File {
}
PHP
);
break;
case "File":
eval(<<<'PHP'
class File {
use TDatabaseObject {
TDatabaseObject::__construct as private databaseObjectConstruct;
}
public function __construct() {
}
}
PHP
);
break;
case "TDatabaseObject":
eval(<<<'PHP'
trait TDatabaseObject {
public function __construct() {
}
}
PHP
);
break;
}
return TRUE;
}
echo "okey";
?>
--EXPECT--
okey