From ce9c1a4bde38195ec32f7cd10ac4196f1d2a125d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sat, 15 Sep 2018 12:14:33 +0200 Subject: [PATCH 1/1] Add new cloning test --- test.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test.php b/test.php index 4e9f290..a6aa3a6 100644 --- a/test.php +++ b/test.php @@ -53,7 +53,6 @@ if (extension_loaded($module)) { ], BBCode::REMOVE_EMPTY ); - var_dump($obj); $obj2 = new $module( [ '' => [ @@ -136,8 +135,12 @@ if (extension_loaded($module)) { ); $obj3 = null; unset($obj2); - $obj2 = clone $obj; - #var_dump(clone $obj); + var_dump($obj2 = clone $obj); + var_dump($obj3 = clone $obj); + var_dump($obj4 = clone $obj); + var_dump($obj5 = clone $obj); + var_dump($obj6 = clone $obj); + var_dump($obj2 = clone $obj); //var_dump(new $module(BBCode::TYPE_ARG, 'tutu')); exit; //$str = $function($module); -- 2.41.1