mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
gh312 bug test
This commit is contained in:
@@ -1,41 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
//require_once '../../../../../vendor/autoload.php';
|
|
||||||
|
|
||||||
if (version_compare(phpversion(), '5.5.0', '>')) {
|
if (version_compare(phpversion(), '5.5.0', '>')) {
|
||||||
|
include 'include.phpxxx';
|
||||||
class Base
|
|
||||||
{
|
|
||||||
const TEMPLATE = '034_parent.tpl';
|
|
||||||
|
|
||||||
public $id = null;
|
|
||||||
|
|
||||||
public function __construct($id)
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getHTML()
|
|
||||||
{
|
|
||||||
return static::class;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class Child extends Base
|
|
||||||
{
|
|
||||||
const TEMPLATE = '034_child.tpl';
|
|
||||||
|
|
||||||
public function getText()
|
|
||||||
{
|
|
||||||
return $this->getHTML();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class BaseClone extends Base
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @requires PHP 5.5
|
* @requires PHP 5.5
|
||||||
*/
|
*/
|
||||||
@@ -122,4 +90,3 @@ if (version_compare(phpversion(), '5.5.0', '>')) {
|
|||||||
],],];
|
],],];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
Reference in New Issue
Block a user